1132718Skan#! /bin/sh 2132718Skan# From configure.in for Readline 5.2, version 2.61. 3132718Skan# Guess values for system-dependent variables and create Makefiles. 4132718Skan# Generated by GNU Autoconf 2.59 for readline 5.2. 5132718Skan# 6132718Skan# Report bugs to <bug-readline@gnu.org>. 7132718Skan# 8132718Skan# Copyright (C) 2003 Free Software Foundation, Inc. 9132718Skan# This configure script is free software; the Free Software Foundation 10132718Skan# gives unlimited permission to copy, distribute and modify it. 11132718Skan## --------------------- ## 12132718Skan## M4sh Initialization. ## 13132718Skan## --------------------- ## 14132718Skan 15132718Skan# Be Bourne compatible 16132718Skanif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17132718Skan emulate sh 18132718Skan NULLCMD=: 19132718Skan # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20132718Skan # is contrary to our usage. Disable this feature. 21132718Skan alias -g '${1+"$@"}'='"$@"' 22132718Skanelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23132718Skan set -o posix 24132718Skanfi 25132718SkanDUALCASE=1; export DUALCASE # for MKS sh 26132718Skan 27132718Skan# Support unset when possible. 28132718Skanif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 29132718Skan as_unset=unset 30132718Skanelse 31132718Skan as_unset=false 32132718Skanfi 33132718Skan 34132718Skan 35132718Skan# Work around bugs in pre-3.0 UWIN ksh. 36132718Skan$as_unset ENV MAIL MAILPATH 37132718SkanPS1='$ ' 38132718SkanPS2='> ' 39132718SkanPS4='+ ' 40132718Skan 41132718Skan# NLS nuisances. 42132718Skanfor as_var in \ 43132718Skan LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 44132718Skan LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 45132718Skan LC_TELEPHONE LC_TIME 46132718Skando 47132718Skan if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 48132718Skan eval $as_var=C; export $as_var 49132718Skan else 50132718Skan $as_unset $as_var 51132718Skan fi 52132718Skandone 53132718Skan 54132718Skan# Required to use basename. 55132718Skanif expr a : '\(a\)' >/dev/null 2>&1; then 56132718Skan as_expr=expr 57132718Skanelse 58132718Skan as_expr=false 59132718Skanfi 60132718Skan 61132718Skanif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 62132718Skan as_basename=basename 63132718Skanelse 64132718Skan as_basename=false 65132718Skanfi 66132718Skan 67132718Skan 68132718Skan# Name of the executable. 69132718Skanas_me=`$as_basename "$0" || 70132718Skan$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 71132718Skan X"$0" : 'X\(//\)$' \| \ 72132718Skan X"$0" : 'X\(/\)$' \| \ 73132718Skan . : '\(.\)' 2>/dev/null || 74132718Skanecho X/"$0" | 75132718Skan sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 76132718Skan /^X\/\(\/\/\)$/{ s//\1/; q; } 77132718Skan /^X\/\(\/\).*/{ s//\1/; q; } 78132718Skan s/.*/./; q'` 79132718Skan 80132718Skan 81132718Skan# PATH needs CR, and LINENO needs CR and PATH. 82132718Skan# Avoid depending upon Character Ranges. 83132718Skanas_cr_letters='abcdefghijklmnopqrstuvwxyz' 84132718Skanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 85132718Skanas_cr_Letters=$as_cr_letters$as_cr_LETTERS 86132718Skanas_cr_digits='0123456789' 87132718Skanas_cr_alnum=$as_cr_Letters$as_cr_digits 88132718Skan 89132718Skan# The user is always right. 90132718Skanif test "${PATH_SEPARATOR+set}" != set; then 91132718Skan echo "#! /bin/sh" >conf$$.sh 92132718Skan echo "exit 0" >>conf$$.sh 93132718Skan chmod +x conf$$.sh 94132718Skan if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 95132718Skan PATH_SEPARATOR=';' 96132718Skan else 97132718Skan PATH_SEPARATOR=: 98132718Skan fi 99132718Skan rm -f conf$$.sh 100132718Skanfi 101132718Skan 102132718Skan 103132718Skan as_lineno_1=$LINENO 104132718Skan as_lineno_2=$LINENO 105132718Skan as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 106132718Skan test "x$as_lineno_1" != "x$as_lineno_2" && 107132718Skan test "x$as_lineno_3" = "x$as_lineno_2" || { 108132718Skan # Find who we are. Look in the path if we contain no path at all 109132718Skan # relative or not. 110132718Skan case $0 in 111132718Skan *[\\/]* ) as_myself=$0 ;; 112132718Skan *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113132718Skanfor as_dir in $PATH 114132718Skando 115132718Skan IFS=$as_save_IFS 116132718Skan test -z "$as_dir" && as_dir=. 117132718Skan test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 118132718Skandone 119132718Skan 120132718Skan ;; 121132718Skan esac 122132718Skan # We did not find ourselves, most probably we were run as `sh COMMAND' 123132718Skan # in which case we are not to be found in the path. 124132718Skan if test "x$as_myself" = x; then 125132718Skan as_myself=$0 126132718Skan fi 127132718Skan if test ! -f "$as_myself"; then 128132718Skan { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 129132718Skan { (exit 1); exit 1; }; } 130132718Skan fi 131132718Skan case $CONFIG_SHELL in 132132718Skan '') 133132718Skan as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 134132718Skanfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 135132718Skando 136132718Skan IFS=$as_save_IFS 137132718Skan test -z "$as_dir" && as_dir=. 138132718Skan for as_base in sh bash ksh sh5; do 139132718Skan case $as_dir in 140132718Skan /*) 141132718Skan if ("$as_dir/$as_base" -c ' 142132718Skan as_lineno_1=$LINENO 143132718Skan as_lineno_2=$LINENO 144132718Skan as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 145132718Skan test "x$as_lineno_1" != "x$as_lineno_2" && 146132718Skan test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 147132718Skan $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 148132718Skan $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 149132718Skan CONFIG_SHELL=$as_dir/$as_base 150132718Skan export CONFIG_SHELL 151132718Skan exec "$CONFIG_SHELL" "$0" ${1+"$@"} 152132718Skan fi;; 153132718Skan esac 154132718Skan done 155132718Skandone 156132718Skan;; 157132718Skan esac 158132718Skan 159132718Skan # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 160132718Skan # uniformly replaced by the line number. The first 'sed' inserts a 161132718Skan # line-number line before each line; the second 'sed' does the real 162132718Skan # work. The second script uses 'N' to pair each line-number line 163132718Skan # with the numbered line, and appends trailing '-' during 164132718Skan # substitution so that $LINENO is not a special case at line end. 165132718Skan # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 166132718Skan # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 167132718Skan sed '=' <$as_myself | 168132718Skan sed ' 169132718Skan N 170132718Skan s,$,-, 171132718Skan : loop 172132718Skan s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 173132718Skan t loop 174132718Skan s,-$,, 175132718Skan s,^['$as_cr_digits']*\n,, 176132718Skan ' >$as_me.lineno && 177132718Skan chmod +x $as_me.lineno || 178132718Skan { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 179132718Skan { (exit 1); exit 1; }; } 180132718Skan 181132718Skan # Don't try to exec as it changes $[0], causing all sort of problems 182132718Skan # (the dirname of $[0] is not the place where we might find the 183132718Skan # original and so on. Autoconf is especially sensible to this). 184132718Skan . ./$as_me.lineno 185132718Skan # Exit status is that of the last command. 186132718Skan exit 187132718Skan} 188132718Skan 189132718Skan 190132718Skancase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 191132718Skan *c*,-n*) ECHO_N= ECHO_C=' 192132718Skan' ECHO_T=' ' ;; 193132718Skan *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 194132718Skan *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 195132718Skanesac 196132718Skan 197132718Skanif expr a : '\(a\)' >/dev/null 2>&1; then 198132718Skan as_expr=expr 199132718Skanelse 200132718Skan as_expr=false 201132718Skanfi 202132718Skan 203132718Skanrm -f conf$$ conf$$.exe conf$$.file 204132718Skanecho >conf$$.file 205132718Skanif ln -s conf$$.file conf$$ 2>/dev/null; then 206132718Skan # We could just check for DJGPP; but this test a) works b) is more generic 207132718Skan # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 208132718Skan if test -f conf$$.exe; then 209132718Skan # Don't use ln at all; we don't have any links 210132718Skan as_ln_s='cp -p' 211132718Skan else 212132718Skan as_ln_s='ln -s' 213132718Skan fi 214132718Skanelif ln conf$$.file conf$$ 2>/dev/null; then 215132718Skan as_ln_s=ln 216132718Skanelse 217132718Skan as_ln_s='cp -p' 218132718Skanfi 219132718Skanrm -f conf$$ conf$$.exe conf$$.file 220132718Skan 221132718Skanif mkdir -p . 2>/dev/null; then 222132718Skan as_mkdir_p=: 223132718Skanelse 224132718Skan test -d ./-p && rmdir ./-p 225132718Skan as_mkdir_p=false 226132718Skanfi 227132718Skan 228132718Skanas_executable_p="test -f" 229132718Skan 230132718Skan# Sed expression to map a string onto a valid CPP name. 231132718Skanas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 232132718Skan 233132718Skan# Sed expression to map a string onto a valid variable name. 234132718Skanas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 235132718Skan 236132718Skan 237132718Skan# IFS 238132718Skan# We need space, tab and new line, in precisely that order. 239132718Skanas_nl=' 240132718Skan' 241132718SkanIFS=" $as_nl" 242132718Skan 243132718Skan# CDPATH. 244132718Skan$as_unset CDPATH 245132718Skan 246132718Skan 247132718Skan# Name of the host. 248132718Skan# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 249132718Skan# so uname gets run too. 250132718Skanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 251132718Skan 252132718Skanexec 6>&1 253132718Skan 254132718Skan# 255132718Skan# Initializations. 256132718Skan# 257132718Skanac_default_prefix=/usr/local 258132718Skanac_config_libobj_dir=. 259132718Skancross_compiling=no 260132718Skansubdirs= 261132718SkanMFLAGS= 262132718SkanMAKEFLAGS= 263132718SkanSHELL=${CONFIG_SHELL-/bin/sh} 264132718Skan 265132718Skan# Maximum number of lines to put in a shell here document. 266132718Skan# This variable seems obsolete. It should probably be removed, and 267132718Skan# only ac_max_sed_lines should be used. 268132718Skan: ${ac_max_here_lines=38} 269132718Skan 270132718Skan# Identity of this package. 271132718SkanPACKAGE_NAME='readline' 272132718SkanPACKAGE_TARNAME='readline' 273132718SkanPACKAGE_VERSION='5.2' 274132718SkanPACKAGE_STRING='readline 5.2' 275132718SkanPACKAGE_BUGREPORT='bug-readline@gnu.org' 276132718Skan 277132718Skanac_unique_file="readline.h" 278132718Skan# Factoring default headers for most tests. 279132718Skanac_includes_default="\ 280132718Skan#include <stdio.h> 281132718Skan#if HAVE_SYS_TYPES_H 282132718Skan# include <sys/types.h> 283132718Skan#endif 284132718Skan#if HAVE_SYS_STAT_H 285132718Skan# include <sys/stat.h> 286132718Skan#endif 287132718Skan#if STDC_HEADERS 288132718Skan# include <stdlib.h> 289132718Skan# include <stddef.h> 290132718Skan#else 291132718Skan# if HAVE_STDLIB_H 292132718Skan# include <stdlib.h> 293132718Skan# endif 294132718Skan#endif 295132718Skan#if HAVE_STRING_H 296132718Skan# if !STDC_HEADERS && HAVE_MEMORY_H 297132718Skan# include <memory.h> 298132718Skan# endif 299132718Skan# include <string.h> 300132718Skan#endif 301132718Skan#if HAVE_STRINGS_H 302132718Skan# include <strings.h> 303132718Skan#endif 304132718Skan#if HAVE_INTTYPES_H 305132718Skan# include <inttypes.h> 306132718Skan#else 307132718Skan# if HAVE_STDINT_H 308132718Skan# include <stdint.h> 309132718Skan# endif 310132718Skan#endif 311132718Skan#if HAVE_UNISTD_H 312132718Skan# include <unistd.h> 313132718Skan#endif" 314132718Skan 315132718Skanac_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 CROSS_COMPILE SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_DOT SHLIB_LIBPREF SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_DLLVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET PURIFY BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS' 316132718Skanac_subst_files='' 317132718Skan 318132718Skan# Initialize some variables set by options. 319132718Skanac_init_help= 320132718Skanac_init_version=false 321132718Skan# The variables have the same names as the options, with 322132718Skan# dashes changed to underlines. 323132718Skancache_file=/dev/null 324132718Skanexec_prefix=NONE 325132718Skanno_create= 326132718Skanno_recursion= 327132718Skanprefix=NONE 328132718Skanprogram_prefix=NONE 329132718Skanprogram_suffix=NONE 330132718Skanprogram_transform_name=s,x,x, 331132718Skansilent= 332132718Skansite= 333132718Skansrcdir= 334132718Skanverbose= 335132718Skanx_includes=NONE 336132718Skanx_libraries=NONE 337132718Skan 338132718Skan# Installation directory options. 339132718Skan# These are left unexpanded so users can "make install exec_prefix=/foo" 340132718Skan# and all the variables that are supposed to be based on exec_prefix 341132718Skan# by default will actually change. 342132718Skan# Use braces instead of parens because sh, perl, etc. also accept them. 343132718Skanbindir='${exec_prefix}/bin' 344132718Skansbindir='${exec_prefix}/sbin' 345132718Skanlibexecdir='${exec_prefix}/libexec' 346132718Skandatadir='${prefix}/share' 347132718Skansysconfdir='${prefix}/etc' 348132718Skansharedstatedir='${prefix}/com' 349132718Skanlocalstatedir='${prefix}/var' 350132718Skanlibdir='${exec_prefix}/lib' 351132718Skanincludedir='${prefix}/include' 352132718Skanoldincludedir='/usr/include' 353132718Skaninfodir='${prefix}/info' 354132718Skanmandir='${prefix}/man' 355132718Skan 356132718Skanac_prev= 357132718Skanfor ac_option 358132718Skando 359132718Skan # If the previous option needs an argument, assign it. 360132718Skan if test -n "$ac_prev"; then 361132718Skan eval "$ac_prev=\$ac_option" 362132718Skan ac_prev= 363132718Skan continue 364132718Skan fi 365132718Skan 366132718Skan ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 367132718Skan 368132718Skan # Accept the important Cygnus configure options, so we can diagnose typos. 369132718Skan 370132718Skan case $ac_option in 371132718Skan 372132718Skan -bindir | --bindir | --bindi | --bind | --bin | --bi) 373132718Skan ac_prev=bindir ;; 374132718Skan -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 375132718Skan bindir=$ac_optarg ;; 376132718Skan 377132718Skan -build | --build | --buil | --bui | --bu) 378132718Skan ac_prev=build_alias ;; 379132718Skan -build=* | --build=* | --buil=* | --bui=* | --bu=*) 380132718Skan build_alias=$ac_optarg ;; 381132718Skan 382132718Skan -cache-file | --cache-file | --cache-fil | --cache-fi \ 383132718Skan | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 384132718Skan ac_prev=cache_file ;; 385132718Skan -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 386132718Skan | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 387132718Skan cache_file=$ac_optarg ;; 388132718Skan 389132718Skan --config-cache | -C) 390132718Skan cache_file=config.cache ;; 391132718Skan 392132718Skan -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 393132718Skan ac_prev=datadir ;; 394132718Skan -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 395132718Skan | --da=*) 396132718Skan datadir=$ac_optarg ;; 397132718Skan 398132718Skan -disable-* | --disable-*) 399132718Skan ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 400132718Skan # Reject names that are not valid shell variable names. 401132718Skan expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 402132718Skan { echo "$as_me: error: invalid feature name: $ac_feature" >&2 403132718Skan { (exit 1); exit 1; }; } 404132718Skan ac_feature=`echo $ac_feature | sed 's/-/_/g'` 405132718Skan eval "enable_$ac_feature=no" ;; 406132718Skan 407132718Skan -enable-* | --enable-*) 408132718Skan ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 409132718Skan # Reject names that are not valid shell variable names. 410132718Skan expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 411132718Skan { echo "$as_me: error: invalid feature name: $ac_feature" >&2 412132718Skan { (exit 1); exit 1; }; } 413132718Skan ac_feature=`echo $ac_feature | sed 's/-/_/g'` 414132718Skan case $ac_option in 415132718Skan *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 416132718Skan *) ac_optarg=yes ;; 417132718Skan esac 418132718Skan eval "enable_$ac_feature='$ac_optarg'" ;; 419132718Skan 420132718Skan -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 421132718Skan | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 422132718Skan | --exec | --exe | --ex) 423132718Skan ac_prev=exec_prefix ;; 424132718Skan -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 425132718Skan | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 426132718Skan | --exec=* | --exe=* | --ex=*) 427132718Skan exec_prefix=$ac_optarg ;; 428132718Skan 429132718Skan -gas | --gas | --ga | --g) 430132718Skan # Obsolete; use --with-gas. 431161651Skan with_gas=yes ;; 432132718Skan 433132718Skan -help | --help | --hel | --he | -h) 434 ac_init_help=long ;; 435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 436 ac_init_help=recursive ;; 437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 438 ac_init_help=short ;; 439 440 -host | --host | --hos | --ho) 441 ac_prev=host_alias ;; 442 -host=* | --host=* | --hos=* | --ho=*) 443 host_alias=$ac_optarg ;; 444 445 -includedir | --includedir | --includedi | --included | --include \ 446 | --includ | --inclu | --incl | --inc) 447 ac_prev=includedir ;; 448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 449 | --includ=* | --inclu=* | --incl=* | --inc=*) 450 includedir=$ac_optarg ;; 451 452 -infodir | --infodir | --infodi | --infod | --info | --inf) 453 ac_prev=infodir ;; 454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 455 infodir=$ac_optarg ;; 456 457 -libdir | --libdir | --libdi | --libd) 458 ac_prev=libdir ;; 459 -libdir=* | --libdir=* | --libdi=* | --libd=*) 460 libdir=$ac_optarg ;; 461 462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 463 | --libexe | --libex | --libe) 464 ac_prev=libexecdir ;; 465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 466 | --libexe=* | --libex=* | --libe=*) 467 libexecdir=$ac_optarg ;; 468 469 -localstatedir | --localstatedir | --localstatedi | --localstated \ 470 | --localstate | --localstat | --localsta | --localst \ 471 | --locals | --local | --loca | --loc | --lo) 472 ac_prev=localstatedir ;; 473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 476 localstatedir=$ac_optarg ;; 477 478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 479 ac_prev=mandir ;; 480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 481 mandir=$ac_optarg ;; 482 483 -nfp | --nfp | --nf) 484 # Obsolete; use --without-fp. 485 with_fp=no ;; 486 487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 488 | --no-cr | --no-c | -n) 489 no_create=yes ;; 490 491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 493 no_recursion=yes ;; 494 495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 497 | --oldin | --oldi | --old | --ol | --o) 498 ac_prev=oldincludedir ;; 499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 502 oldincludedir=$ac_optarg ;; 503 504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 505 ac_prev=prefix ;; 506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 507 prefix=$ac_optarg ;; 508 509 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 510 | --program-pre | --program-pr | --program-p) 511 ac_prev=program_prefix ;; 512 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 514 program_prefix=$ac_optarg ;; 515 516 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 517 | --program-suf | --program-su | --program-s) 518 ac_prev=program_suffix ;; 519 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 521 program_suffix=$ac_optarg ;; 522 523 -program-transform-name | --program-transform-name \ 524 | --program-transform-nam | --program-transform-na \ 525 | --program-transform-n | --program-transform- \ 526 | --program-transform | --program-transfor \ 527 | --program-transfo | --program-transf \ 528 | --program-trans | --program-tran \ 529 | --progr-tra | --program-tr | --program-t) 530 ac_prev=program_transform_name ;; 531 -program-transform-name=* | --program-transform-name=* \ 532 | --program-transform-nam=* | --program-transform-na=* \ 533 | --program-transform-n=* | --program-transform-=* \ 534 | --program-transform=* | --program-transfor=* \ 535 | --program-transfo=* | --program-transf=* \ 536 | --program-trans=* | --program-tran=* \ 537 | --progr-tra=* | --program-tr=* | --program-t=*) 538 program_transform_name=$ac_optarg ;; 539 540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 541 | -silent | --silent | --silen | --sile | --sil) 542 silent=yes ;; 543 544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 545 ac_prev=sbindir ;; 546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 547 | --sbi=* | --sb=*) 548 sbindir=$ac_optarg ;; 549 550 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 552 | --sharedst | --shareds | --shared | --share | --shar \ 553 | --sha | --sh) 554 ac_prev=sharedstatedir ;; 555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 558 | --sha=* | --sh=*) 559 sharedstatedir=$ac_optarg ;; 560 561 -site | --site | --sit) 562 ac_prev=site ;; 563 -site=* | --site=* | --sit=*) 564 site=$ac_optarg ;; 565 566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 567 ac_prev=srcdir ;; 568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 569 srcdir=$ac_optarg ;; 570 571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 572 | --syscon | --sysco | --sysc | --sys | --sy) 573 ac_prev=sysconfdir ;; 574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 576 sysconfdir=$ac_optarg ;; 577 578 -target | --target | --targe | --targ | --tar | --ta | --t) 579 ac_prev=target_alias ;; 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 581 target_alias=$ac_optarg ;; 582 583 -v | -verbose | --verbose | --verbos | --verbo | --verb) 584 verbose=yes ;; 585 586 -version | --version | --versio | --versi | --vers | -V) 587 ac_init_version=: ;; 588 589 -with-* | --with-*) 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 591 # Reject names that are not valid shell variable names. 592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 593 { echo "$as_me: error: invalid package name: $ac_package" >&2 594 { (exit 1); exit 1; }; } 595 ac_package=`echo $ac_package| sed 's/-/_/g'` 596 case $ac_option in 597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 598 *) ac_optarg=yes ;; 599 esac 600 eval "with_$ac_package='$ac_optarg'" ;; 601 602 -without-* | --without-*) 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 604 # Reject names that are not valid shell variable names. 605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 606 { echo "$as_me: error: invalid package name: $ac_package" >&2 607 { (exit 1); exit 1; }; } 608 ac_package=`echo $ac_package | sed 's/-/_/g'` 609 eval "with_$ac_package=no" ;; 610 611 --x) 612 # Obsolete; use --with-x. 613 with_x=yes ;; 614 615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 616 | --x-incl | --x-inc | --x-in | --x-i) 617 ac_prev=x_includes ;; 618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 620 x_includes=$ac_optarg ;; 621 622 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 624 ac_prev=x_libraries ;; 625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 627 x_libraries=$ac_optarg ;; 628 629 -*) { echo "$as_me: error: unrecognized option: $ac_option 630Try \`$0 --help' for more information." >&2 631 { (exit 1); exit 1; }; } 632 ;; 633 634 *=*) 635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 636 # Reject names that are not valid shell variable names. 637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 639 { (exit 1); exit 1; }; } 640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 641 eval "$ac_envvar='$ac_optarg'" 642 export $ac_envvar ;; 643 644 *) 645 # FIXME: should be removed in autoconf 3.0. 646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 650 ;; 651 652 esac 653done 654 655if test -n "$ac_prev"; then 656 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 657 { echo "$as_me: error: missing argument to $ac_option" >&2 658 { (exit 1); exit 1; }; } 659fi 660 661# Be sure to have absolute paths. 662for ac_var in exec_prefix prefix 663do 664 eval ac_val=$`echo $ac_var` 665 case $ac_val in 666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 668 { (exit 1); exit 1; }; };; 669 esac 670done 671 672# Be sure to have absolute paths. 673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 674 localstatedir libdir includedir oldincludedir infodir mandir 675do 676 eval ac_val=$`echo $ac_var` 677 case $ac_val in 678 [\\/$]* | ?:[\\/]* ) ;; 679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 680 { (exit 1); exit 1; }; };; 681 esac 682done 683 684# There might be people who depend on the old broken behavior: `$host' 685# used to hold the argument of --host etc. 686# FIXME: To remove some day. 687build=$build_alias 688host=$host_alias 689target=$target_alias 690 691# FIXME: To remove some day. 692if test "x$host_alias" != x; then 693 if test "x$build_alias" = x; then 694 cross_compiling=maybe 695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 696 If a cross compiler is detected then cross compile mode will be used." >&2 697 elif test "x$build_alias" != "x$host_alias"; then 698 cross_compiling=yes 699 fi 700fi 701 702ac_tool_prefix= 703test -n "$host_alias" && ac_tool_prefix=$host_alias- 704 705test "$silent" = yes && exec 6>/dev/null 706 707 708# Find the source files, if location was not specified. 709if test -z "$srcdir"; then 710 ac_srcdir_defaulted=yes 711 # Try the directory containing this script, then its parent. 712 ac_confdir=`(dirname "$0") 2>/dev/null || 713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 714 X"$0" : 'X\(//\)[^/]' \| \ 715 X"$0" : 'X\(//\)$' \| \ 716 X"$0" : 'X\(/\)' \| \ 717 . : '\(.\)' 2>/dev/null || 718echo X"$0" | 719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 720 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 721 /^X\(\/\/\)$/{ s//\1/; q; } 722 /^X\(\/\).*/{ s//\1/; q; } 723 s/.*/./; q'` 724 srcdir=$ac_confdir 725 if test ! -r $srcdir/$ac_unique_file; then 726 srcdir=.. 727 fi 728else 729 ac_srcdir_defaulted=no 730fi 731if test ! -r $srcdir/$ac_unique_file; then 732 if test "$ac_srcdir_defaulted" = yes; then 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 734 { (exit 1); exit 1; }; } 735 else 736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 737 { (exit 1); exit 1; }; } 738 fi 739fi 740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 742 { (exit 1); exit 1; }; } 743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 744ac_env_build_alias_set=${build_alias+set} 745ac_env_build_alias_value=$build_alias 746ac_cv_env_build_alias_set=${build_alias+set} 747ac_cv_env_build_alias_value=$build_alias 748ac_env_host_alias_set=${host_alias+set} 749ac_env_host_alias_value=$host_alias 750ac_cv_env_host_alias_set=${host_alias+set} 751ac_cv_env_host_alias_value=$host_alias 752ac_env_target_alias_set=${target_alias+set} 753ac_env_target_alias_value=$target_alias 754ac_cv_env_target_alias_set=${target_alias+set} 755ac_cv_env_target_alias_value=$target_alias 756ac_env_CC_set=${CC+set} 757ac_env_CC_value=$CC 758ac_cv_env_CC_set=${CC+set} 759ac_cv_env_CC_value=$CC 760ac_env_CFLAGS_set=${CFLAGS+set} 761ac_env_CFLAGS_value=$CFLAGS 762ac_cv_env_CFLAGS_set=${CFLAGS+set} 763ac_cv_env_CFLAGS_value=$CFLAGS 764ac_env_LDFLAGS_set=${LDFLAGS+set} 765ac_env_LDFLAGS_value=$LDFLAGS 766ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 767ac_cv_env_LDFLAGS_value=$LDFLAGS 768ac_env_CPPFLAGS_set=${CPPFLAGS+set} 769ac_env_CPPFLAGS_value=$CPPFLAGS 770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 771ac_cv_env_CPPFLAGS_value=$CPPFLAGS 772ac_env_CPP_set=${CPP+set} 773ac_env_CPP_value=$CPP 774ac_cv_env_CPP_set=${CPP+set} 775ac_cv_env_CPP_value=$CPP 776 777# 778# Report the --help message. 779# 780if test "$ac_init_help" = "long"; then 781 # Omit some internal or obsolete options to make the list less imposing. 782 # This message is too long to be a string in the A/UX 3.1 sh. 783 cat <<_ACEOF 784\`configure' configures readline 5.2 to adapt to many kinds of systems. 785 786Usage: $0 [OPTION]... [VAR=VALUE]... 787 788To assign environment variables (e.g., CC, CFLAGS...), specify them as 789VAR=VALUE. See below for descriptions of some of the useful variables. 790 791Defaults for the options are specified in brackets. 792 793Configuration: 794 -h, --help display this help and exit 795 --help=short display options specific to this package 796 --help=recursive display the short help of all the included packages 797 -V, --version display version information and exit 798 -q, --quiet, --silent do not print \`checking...' messages 799 --cache-file=FILE cache test results in FILE [disabled] 800 -C, --config-cache alias for \`--cache-file=config.cache' 801 -n, --no-create do not create output files 802 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 803 804_ACEOF 805 806 cat <<_ACEOF 807Installation directories: 808 --prefix=PREFIX install architecture-independent files in PREFIX 809 [$ac_default_prefix] 810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 811 [PREFIX] 812 813By default, \`make install' will install all the files in 814\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 815an installation prefix other than \`$ac_default_prefix' using \`--prefix', 816for instance \`--prefix=\$HOME'. 817 818For better control, use the options below. 819 820Fine tuning of the installation directories: 821 --bindir=DIR user executables [EPREFIX/bin] 822 --sbindir=DIR system admin executables [EPREFIX/sbin] 823 --libexecdir=DIR program executables [EPREFIX/libexec] 824 --datadir=DIR read-only architecture-independent data [PREFIX/share] 825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 827 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 828 --libdir=DIR object code libraries [EPREFIX/lib] 829 --includedir=DIR C header files [PREFIX/include] 830 --oldincludedir=DIR C header files for non-gcc [/usr/include] 831 --infodir=DIR info documentation [PREFIX/info] 832 --mandir=DIR man documentation [PREFIX/man] 833_ACEOF 834 835 cat <<\_ACEOF 836 837System types: 838 --build=BUILD configure for building on BUILD [guessed] 839 --host=HOST cross-compile to build programs to run on HOST [BUILD] 840_ACEOF 841fi 842 843if test -n "$ac_init_help"; then 844 case $ac_init_help in 845 short | recursive ) echo "Configuration of readline 5.2:";; 846 esac 847 cat <<\_ACEOF 848 849Optional Features: 850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 852 --enable-multibyte enable multibyte characters if OS supports them 853 --enable-shared build shared libraries [default=YES] 854 --enable-static build static libraries [default=YES] 855 856Optional Packages: 857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 859 --with-curses use the curses library instead of the termcap 860 library 861 --with-purify configure to postprocess with purify 862 863Some influential environment variables: 864 CC C compiler command 865 CFLAGS C compiler flags 866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 867 nonstandard directory <lib dir> 868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 869 headers in a nonstandard directory <include dir> 870 CPP C preprocessor 871 872Use these variables to override the choices made by `configure' or to help 873it to find libraries and programs with nonstandard names/locations. 874 875Report bugs to <bug-readline@gnu.org>. 876_ACEOF 877fi 878 879if test "$ac_init_help" = "recursive"; then 880 # If there are subdirs, report their specific --help. 881 ac_popdir=`pwd` 882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 883 test -d $ac_dir || continue 884 ac_builddir=. 885 886if test "$ac_dir" != .; then 887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 888 # A "../" for each directory in $ac_dir_suffix. 889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 890else 891 ac_dir_suffix= ac_top_builddir= 892fi 893 894case $srcdir in 895 .) # No --srcdir option. We are building in place. 896 ac_srcdir=. 897 if test -z "$ac_top_builddir"; then 898 ac_top_srcdir=. 899 else 900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 901 fi ;; 902 [\\/]* | ?:[\\/]* ) # Absolute path. 903 ac_srcdir=$srcdir$ac_dir_suffix; 904 ac_top_srcdir=$srcdir ;; 905 *) # Relative path. 906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 907 ac_top_srcdir=$ac_top_builddir$srcdir ;; 908esac 909 910# Do not use `cd foo && pwd` to compute absolute paths, because 911# the directories may not exist. 912case `pwd` in 913.) ac_abs_builddir="$ac_dir";; 914*) 915 case "$ac_dir" in 916 .) ac_abs_builddir=`pwd`;; 917 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 918 *) ac_abs_builddir=`pwd`/"$ac_dir";; 919 esac;; 920esac 921case $ac_abs_builddir in 922.) ac_abs_top_builddir=${ac_top_builddir}.;; 923*) 924 case ${ac_top_builddir}. in 925 .) ac_abs_top_builddir=$ac_abs_builddir;; 926 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 927 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 928 esac;; 929esac 930case $ac_abs_builddir in 931.) ac_abs_srcdir=$ac_srcdir;; 932*) 933 case $ac_srcdir in 934 .) ac_abs_srcdir=$ac_abs_builddir;; 935 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 936 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 937 esac;; 938esac 939case $ac_abs_builddir in 940.) ac_abs_top_srcdir=$ac_top_srcdir;; 941*) 942 case $ac_top_srcdir in 943 .) ac_abs_top_srcdir=$ac_abs_builddir;; 944 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 945 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 946 esac;; 947esac 948 949 cd $ac_dir 950 # Check for guested configure; otherwise get Cygnus style configure. 951 if test -f $ac_srcdir/configure.gnu; then 952 echo 953 $SHELL $ac_srcdir/configure.gnu --help=recursive 954 elif test -f $ac_srcdir/configure; then 955 echo 956 $SHELL $ac_srcdir/configure --help=recursive 957 elif test -f $ac_srcdir/configure.ac || 958 test -f $ac_srcdir/configure.in; then 959 echo 960 $ac_configure --help 961 else 962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 963 fi 964 cd $ac_popdir 965 done 966fi 967 968test -n "$ac_init_help" && exit 0 969if $ac_init_version; then 970 cat <<\_ACEOF 971readline configure 5.2 972generated by GNU Autoconf 2.59 973 974Copyright (C) 2003 Free Software Foundation, Inc. 975This configure script is free software; the Free Software Foundation 976gives unlimited permission to copy, distribute and modify it. 977_ACEOF 978 exit 0 979fi 980exec 5>config.log 981cat >&5 <<_ACEOF 982This file contains any messages produced by compilers while 983running configure, to aid debugging if configure makes a mistake. 984 985It was created by readline $as_me 5.2, which was 986generated by GNU Autoconf 2.59. Invocation command line was 987 988 $ $0 $@ 989 990_ACEOF 991{ 992cat <<_ASUNAME 993## --------- ## 994## Platform. ## 995## --------- ## 996 997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 998uname -m = `(uname -m) 2>/dev/null || echo unknown` 999uname -r = `(uname -r) 2>/dev/null || echo unknown` 1000uname -s = `(uname -s) 2>/dev/null || echo unknown` 1001uname -v = `(uname -v) 2>/dev/null || echo unknown` 1002 1003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1004/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1005 1006/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1007/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1009hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1010/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1011/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1012/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1013 1014_ASUNAME 1015 1016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1017for as_dir in $PATH 1018do 1019 IFS=$as_save_IFS 1020 test -z "$as_dir" && as_dir=. 1021 echo "PATH: $as_dir" 1022done 1023 1024} >&5 1025 1026cat >&5 <<_ACEOF 1027 1028 1029## ----------- ## 1030## Core tests. ## 1031## ----------- ## 1032 1033_ACEOF 1034 1035 1036# Keep a trace of the command line. 1037# Strip out --no-create and --no-recursion so they do not pile up. 1038# Strip out --silent because we don't want to record it for future runs. 1039# Also quote any args containing shell meta-characters. 1040# Make two passes to allow for proper duplicate-argument suppression. 1041ac_configure_args= 1042ac_configure_args0= 1043ac_configure_args1= 1044ac_sep= 1045ac_must_keep_next=false 1046for ac_pass in 1 2 1047do 1048 for ac_arg 1049 do 1050 case $ac_arg in 1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053 | -silent | --silent | --silen | --sile | --sil) 1054 continue ;; 1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1057 esac 1058 case $ac_pass in 1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1060 2) 1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1062 if test $ac_must_keep_next = true; then 1063 ac_must_keep_next=false # Got value, back to normal. 1064 else 1065 case $ac_arg in 1066 *=* | --config-cache | -C | -disable-* | --disable-* \ 1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1069 | -with-* | --with-* | -without-* | --without-* | --x) 1070 case "$ac_configure_args0 " in 1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1072 esac 1073 ;; 1074 -* ) ac_must_keep_next=true ;; 1075 esac 1076 fi 1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1078 # Get rid of the leading space. 1079 ac_sep=" " 1080 ;; 1081 esac 1082 done 1083done 1084$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1085$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1086 1087# When interrupted or exit'd, cleanup temporary files, and complete 1088# config.log. We remove comments because anyway the quotes in there 1089# would cause problems or look ugly. 1090# WARNING: Be sure not to use single quotes in there, as some shells, 1091# such as our DU 5.0 friend, will then `close' the trap. 1092trap 'exit_status=$? 1093 # Save into config.log some information that might help in debugging. 1094 { 1095 echo 1096 1097 cat <<\_ASBOX 1098## ---------------- ## 1099## Cache variables. ## 1100## ---------------- ## 1101_ASBOX 1102 echo 1103 # The following way of writing the cache mishandles newlines in values, 1104{ 1105 (set) 2>&1 | 1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1107 *ac_space=\ *) 1108 sed -n \ 1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1111 ;; 1112 *) 1113 sed -n \ 1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1115 ;; 1116 esac; 1117} 1118 echo 1119 1120 cat <<\_ASBOX 1121## ----------------- ## 1122## Output variables. ## 1123## ----------------- ## 1124_ASBOX 1125 echo 1126 for ac_var in $ac_subst_vars 1127 do 1128 eval ac_val=$`echo $ac_var` 1129 echo "$ac_var='"'"'$ac_val'"'"'" 1130 done | sort 1131 echo 1132 1133 if test -n "$ac_subst_files"; then 1134 cat <<\_ASBOX 1135## ------------- ## 1136## Output files. ## 1137## ------------- ## 1138_ASBOX 1139 echo 1140 for ac_var in $ac_subst_files 1141 do 1142 eval ac_val=$`echo $ac_var` 1143 echo "$ac_var='"'"'$ac_val'"'"'" 1144 done | sort 1145 echo 1146 fi 1147 1148 if test -s confdefs.h; then 1149 cat <<\_ASBOX 1150## ----------- ## 1151## confdefs.h. ## 1152## ----------- ## 1153_ASBOX 1154 echo 1155 sed "/^$/d" confdefs.h | sort 1156 echo 1157 fi 1158 test "$ac_signal" != 0 && 1159 echo "$as_me: caught signal $ac_signal" 1160 echo "$as_me: exit $exit_status" 1161 } >&5 1162 rm -f core *.core && 1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1164 exit $exit_status 1165 ' 0 1166for ac_signal in 1 2 13 15; do 1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1168done 1169ac_signal=0 1170 1171# confdefs.h avoids OS command line length limits that DEFS can exceed. 1172rm -rf conftest* confdefs.h 1173# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1174echo >confdefs.h 1175 1176# Predefined preprocessor variables. 1177 1178cat >>confdefs.h <<_ACEOF 1179#define PACKAGE_NAME "$PACKAGE_NAME" 1180_ACEOF 1181 1182 1183cat >>confdefs.h <<_ACEOF 1184#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1185_ACEOF 1186 1187 1188cat >>confdefs.h <<_ACEOF 1189#define PACKAGE_VERSION "$PACKAGE_VERSION" 1190_ACEOF 1191 1192 1193cat >>confdefs.h <<_ACEOF 1194#define PACKAGE_STRING "$PACKAGE_STRING" 1195_ACEOF 1196 1197 1198cat >>confdefs.h <<_ACEOF 1199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1200_ACEOF 1201 1202 1203# Let the site file select an alternate cache file if it wants to. 1204# Prefer explicitly selected file to automatically selected ones. 1205if test -z "$CONFIG_SITE"; then 1206 if test "x$prefix" != xNONE; then 1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1208 else 1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1210 fi 1211fi 1212for ac_site_file in $CONFIG_SITE; do 1213 if test -r "$ac_site_file"; then 1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1215echo "$as_me: loading site script $ac_site_file" >&6;} 1216 sed 's/^/| /' "$ac_site_file" >&5 1217 . "$ac_site_file" 1218 fi 1219done 1220 1221if test -r "$cache_file"; then 1222 # Some versions of bash will fail to source /dev/null (special 1223 # files actually), so we avoid doing that. 1224 if test -f "$cache_file"; then 1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1226echo "$as_me: loading cache $cache_file" >&6;} 1227 case $cache_file in 1228 [\\/]* | ?:[\\/]* ) . $cache_file;; 1229 *) . ./$cache_file;; 1230 esac 1231 fi 1232else 1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1234echo "$as_me: creating cache $cache_file" >&6;} 1235 >$cache_file 1236fi 1237 1238# Check that the precious variables saved in the cache have kept the same 1239# value. 1240ac_cache_corrupted=false 1241for ac_var in `(set) 2>&1 | 1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1244 eval ac_new_set=\$ac_env_${ac_var}_set 1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1246 eval ac_new_val="\$ac_env_${ac_var}_value" 1247 case $ac_old_set,$ac_new_set in 1248 set,) 1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1250echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 1252 ,set) 1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1254echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1255 ac_cache_corrupted=: ;; 1256 ,);; 1257 *) 1258 if test "x$ac_old_val" != "x$ac_new_val"; then 1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1260echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1262echo "$as_me: former value: $ac_old_val" >&2;} 1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1264echo "$as_me: current value: $ac_new_val" >&2;} 1265 ac_cache_corrupted=: 1266 fi;; 1267 esac 1268 # Pass precious variables to config.status. 1269 if test "$ac_new_set" = set; then 1270 case $ac_new_val in 1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1273 *) ac_arg=$ac_var=$ac_new_val ;; 1274 esac 1275 case " $ac_configure_args " in 1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1278 esac 1279 fi 1280done 1281if $ac_cache_corrupted; then 1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1283echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1285echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1286 { (exit 1); exit 1; }; } 1287fi 1288 1289ac_ext=c 1290ac_cpp='$CPP $CPPFLAGS' 1291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1293ac_compiler_gnu=$ac_cv_c_compiler_gnu 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325ac_aux_dir= 1326for ac_dir in ./support $srcdir/./support; do 1327 if test -f $ac_dir/install-sh; then 1328 ac_aux_dir=$ac_dir 1329 ac_install_sh="$ac_aux_dir/install-sh -c" 1330 break 1331 elif test -f $ac_dir/install.sh; then 1332 ac_aux_dir=$ac_dir 1333 ac_install_sh="$ac_aux_dir/install.sh -c" 1334 break 1335 elif test -f $ac_dir/shtool; then 1336 ac_aux_dir=$ac_dir 1337 ac_install_sh="$ac_aux_dir/shtool install -c" 1338 break 1339 fi 1340done 1341if test -z "$ac_aux_dir"; then 1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5 1343echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;} 1344 { (exit 1); exit 1; }; } 1345fi 1346ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1347ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1349 1350 ac_config_headers="$ac_config_headers config.h" 1351 1352 1353LIBVERSION=5.2 1354 1355# Make sure we can run config.sub. 1356$ac_config_sub sun4 >/dev/null 2>&1 || 1357 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1358echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1359 { (exit 1); exit 1; }; } 1360 1361echo "$as_me:$LINENO: checking build system type" >&5 1362echo $ECHO_N "checking build system type... $ECHO_C" >&6 1363if test "${ac_cv_build+set}" = set; then 1364 echo $ECHO_N "(cached) $ECHO_C" >&6 1365else 1366 ac_cv_build_alias=$build_alias 1367test -z "$ac_cv_build_alias" && 1368 ac_cv_build_alias=`$ac_config_guess` 1369test -z "$ac_cv_build_alias" && 1370 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1371echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1372 { (exit 1); exit 1; }; } 1373ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1374 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1375echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1376 { (exit 1); exit 1; }; } 1377 1378fi 1379echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1380echo "${ECHO_T}$ac_cv_build" >&6 1381build=$ac_cv_build 1382build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1383build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1384build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1385 1386 1387echo "$as_me:$LINENO: checking host system type" >&5 1388echo $ECHO_N "checking host system type... $ECHO_C" >&6 1389if test "${ac_cv_host+set}" = set; then 1390 echo $ECHO_N "(cached) $ECHO_C" >&6 1391else 1392 ac_cv_host_alias=$host_alias 1393test -z "$ac_cv_host_alias" && 1394 ac_cv_host_alias=$ac_cv_build_alias 1395ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1397echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1398 { (exit 1); exit 1; }; } 1399 1400fi 1401echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1402echo "${ECHO_T}$ac_cv_host" >&6 1403host=$ac_cv_host 1404host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1405host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1406host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1407 1408 1409 1410opt_curses=no 1411opt_purify=no 1412 1413 1414# Check whether --with-curses or --without-curses was given. 1415if test "${with_curses+set}" = set; then 1416 withval="$with_curses" 1417 opt_curses=$withval 1418fi; 1419 1420# Check whether --with-purify or --without-purify was given. 1421if test "${with_purify+set}" = set; then 1422 withval="$with_purify" 1423 opt_purify=$withval 1424fi; 1425 1426if test "$opt_curses" = "yes"; then 1427 prefer_curses=yes 1428fi 1429 1430if test "$opt_purify" = yes; then 1431 PURIFY="purify" 1432else 1433 PURIFY= 1434fi 1435 1436opt_multibyte=yes 1437opt_static_libs=yes 1438opt_shared_libs=yes 1439 1440# Check whether --enable-multibyte or --disable-multibyte was given. 1441if test "${enable_multibyte+set}" = set; then 1442 enableval="$enable_multibyte" 1443 opt_multibyte=$enableval 1444fi; 1445# Check whether --enable-shared or --disable-shared was given. 1446if test "${enable_shared+set}" = set; then 1447 enableval="$enable_shared" 1448 opt_shared_libs=$enableval 1449fi; 1450# Check whether --enable-static or --disable-static was given. 1451if test "${enable_static+set}" = set; then 1452 enableval="$enable_static" 1453 opt_static_libs=$enableval 1454fi; 1455 1456if test $opt_multibyte = no; then 1457cat >>confdefs.h <<\_ACEOF 1458#define NO_MULTIBYTE_SUPPORT 1 1459_ACEOF 1460 1461fi 1462 1463 1464 1465CROSS_COMPILE= 1466if test "x$cross_compiling" = "xyes"; then 1467 case "${host}" in 1468 *-cygwin*) 1469 cross_cache=${srcdir}/cross-build/cygwin.cache 1470 ;; 1471 *-mingw*) 1472 cross_cache=${srcdir}/cross-build/mingw.cache 1473 ;; 1474 i[3456]86-*-beos*) 1475 cross_cache=${srcdir}/cross-build/x86-beos.cache 1476 ;; 1477 *) echo "configure: cross-compiling for $host is not supported" >&2 1478 ;; 1479 esac 1480 if test -n "${cross_cache}" && test -r "${cross_cache}"; then 1481 echo "loading cross-build cache file ${cross_cache}" 1482 . ${cross_cache} 1483 fi 1484 unset cross_cache 1485 CROSS_COMPILE='-DCROSS_COMPILING' 1486 1487fi 1488 1489echo "" 1490echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" 1491echo "" 1492 1493# We want these before the checks, so the checks can modify their values. 1494test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 1495 1496echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1497echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1498set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1499if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1500 echo $ECHO_N "(cached) $ECHO_C" >&6 1501else 1502 cat >conftest.make <<\_ACEOF 1503all: 1504 @echo 'ac_maketemp="$(MAKE)"' 1505_ACEOF 1506# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1507eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1508if test -n "$ac_maketemp"; then 1509 eval ac_cv_prog_make_${ac_make}_set=yes 1510else 1511 eval ac_cv_prog_make_${ac_make}_set=no 1512fi 1513rm -f conftest.make 1514fi 1515if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1516 echo "$as_me:$LINENO: result: yes" >&5 1517echo "${ECHO_T}yes" >&6 1518 SET_MAKE= 1519else 1520 echo "$as_me:$LINENO: result: no" >&5 1521echo "${ECHO_T}no" >&6 1522 SET_MAKE="MAKE=${MAKE-make}" 1523fi 1524 1525ac_ext=c 1526ac_cpp='$CPP $CPPFLAGS' 1527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1529ac_compiler_gnu=$ac_cv_c_compiler_gnu 1530if test -n "$ac_tool_prefix"; then 1531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1532set dummy ${ac_tool_prefix}gcc; ac_word=$2 1533echo "$as_me:$LINENO: checking for $ac_word" >&5 1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1535if test "${ac_cv_prog_CC+set}" = set; then 1536 echo $ECHO_N "(cached) $ECHO_C" >&6 1537else 1538 if test -n "$CC"; then 1539 ac_cv_prog_CC="$CC" # Let the user override the test. 1540else 1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1542for as_dir in $PATH 1543do 1544 IFS=$as_save_IFS 1545 test -z "$as_dir" && as_dir=. 1546 for ac_exec_ext in '' $ac_executable_extensions; do 1547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1548 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1550 break 2 1551 fi 1552done 1553done 1554 1555fi 1556fi 1557CC=$ac_cv_prog_CC 1558if test -n "$CC"; then 1559 echo "$as_me:$LINENO: result: $CC" >&5 1560echo "${ECHO_T}$CC" >&6 1561else 1562 echo "$as_me:$LINENO: result: no" >&5 1563echo "${ECHO_T}no" >&6 1564fi 1565 1566fi 1567if test -z "$ac_cv_prog_CC"; then 1568 ac_ct_CC=$CC 1569 # Extract the first word of "gcc", so it can be a program name with args. 1570set dummy gcc; ac_word=$2 1571echo "$as_me:$LINENO: checking for $ac_word" >&5 1572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1573if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1574 echo $ECHO_N "(cached) $ECHO_C" >&6 1575else 1576 if test -n "$ac_ct_CC"; then 1577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1578else 1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1580for as_dir in $PATH 1581do 1582 IFS=$as_save_IFS 1583 test -z "$as_dir" && as_dir=. 1584 for ac_exec_ext in '' $ac_executable_extensions; do 1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1586 ac_cv_prog_ac_ct_CC="gcc" 1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1588 break 2 1589 fi 1590done 1591done 1592 1593fi 1594fi 1595ac_ct_CC=$ac_cv_prog_ac_ct_CC 1596if test -n "$ac_ct_CC"; then 1597 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1598echo "${ECHO_T}$ac_ct_CC" >&6 1599else 1600 echo "$as_me:$LINENO: result: no" >&5 1601echo "${ECHO_T}no" >&6 1602fi 1603 1604 CC=$ac_ct_CC 1605else 1606 CC="$ac_cv_prog_CC" 1607fi 1608 1609if test -z "$CC"; then 1610 if test -n "$ac_tool_prefix"; then 1611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1612set dummy ${ac_tool_prefix}cc; ac_word=$2 1613echo "$as_me:$LINENO: checking for $ac_word" >&5 1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1615if test "${ac_cv_prog_CC+set}" = set; then 1616 echo $ECHO_N "(cached) $ECHO_C" >&6 1617else 1618 if test -n "$CC"; then 1619 ac_cv_prog_CC="$CC" # Let the user override the test. 1620else 1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1622for as_dir in $PATH 1623do 1624 IFS=$as_save_IFS 1625 test -z "$as_dir" && as_dir=. 1626 for ac_exec_ext in '' $ac_executable_extensions; do 1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1628 ac_cv_prog_CC="${ac_tool_prefix}cc" 1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1630 break 2 1631 fi 1632done 1633done 1634 1635fi 1636fi 1637CC=$ac_cv_prog_CC 1638if test -n "$CC"; then 1639 echo "$as_me:$LINENO: result: $CC" >&5 1640echo "${ECHO_T}$CC" >&6 1641else 1642 echo "$as_me:$LINENO: result: no" >&5 1643echo "${ECHO_T}no" >&6 1644fi 1645 1646fi 1647if test -z "$ac_cv_prog_CC"; then 1648 ac_ct_CC=$CC 1649 # Extract the first word of "cc", so it can be a program name with args. 1650set dummy cc; ac_word=$2 1651echo "$as_me:$LINENO: checking for $ac_word" >&5 1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1654 echo $ECHO_N "(cached) $ECHO_C" >&6 1655else 1656 if test -n "$ac_ct_CC"; then 1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1658else 1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1660for as_dir in $PATH 1661do 1662 IFS=$as_save_IFS 1663 test -z "$as_dir" && as_dir=. 1664 for ac_exec_ext in '' $ac_executable_extensions; do 1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1666 ac_cv_prog_ac_ct_CC="cc" 1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1668 break 2 1669 fi 1670done 1671done 1672 1673fi 1674fi 1675ac_ct_CC=$ac_cv_prog_ac_ct_CC 1676if test -n "$ac_ct_CC"; then 1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1678echo "${ECHO_T}$ac_ct_CC" >&6 1679else 1680 echo "$as_me:$LINENO: result: no" >&5 1681echo "${ECHO_T}no" >&6 1682fi 1683 1684 CC=$ac_ct_CC 1685else 1686 CC="$ac_cv_prog_CC" 1687fi 1688 1689fi 1690if test -z "$CC"; then 1691 # Extract the first word of "cc", so it can be a program name with args. 1692set dummy cc; ac_word=$2 1693echo "$as_me:$LINENO: checking for $ac_word" >&5 1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1695if test "${ac_cv_prog_CC+set}" = set; then 1696 echo $ECHO_N "(cached) $ECHO_C" >&6 1697else 1698 if test -n "$CC"; then 1699 ac_cv_prog_CC="$CC" # Let the user override the test. 1700else 1701 ac_prog_rejected=no 1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1703for as_dir in $PATH 1704do 1705 IFS=$as_save_IFS 1706 test -z "$as_dir" && as_dir=. 1707 for ac_exec_ext in '' $ac_executable_extensions; do 1708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1710 ac_prog_rejected=yes 1711 continue 1712 fi 1713 ac_cv_prog_CC="cc" 1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1715 break 2 1716 fi 1717done 1718done 1719 1720if test $ac_prog_rejected = yes; then 1721 # We found a bogon in the path, so make sure we never use it. 1722 set dummy $ac_cv_prog_CC 1723 shift 1724 if test $# != 0; then 1725 # We chose a different compiler from the bogus one. 1726 # However, it has the same basename, so the bogon will be chosen 1727 # first if we set CC to just the basename; use the full file name. 1728 shift 1729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1730 fi 1731fi 1732fi 1733fi 1734CC=$ac_cv_prog_CC 1735if test -n "$CC"; then 1736 echo "$as_me:$LINENO: result: $CC" >&5 1737echo "${ECHO_T}$CC" >&6 1738else 1739 echo "$as_me:$LINENO: result: no" >&5 1740echo "${ECHO_T}no" >&6 1741fi 1742 1743fi 1744if test -z "$CC"; then 1745 if test -n "$ac_tool_prefix"; then 1746 for ac_prog in cl 1747 do 1748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1749set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1750echo "$as_me:$LINENO: checking for $ac_word" >&5 1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1752if test "${ac_cv_prog_CC+set}" = set; then 1753 echo $ECHO_N "(cached) $ECHO_C" >&6 1754else 1755 if test -n "$CC"; then 1756 ac_cv_prog_CC="$CC" # Let the user override the test. 1757else 1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1759for as_dir in $PATH 1760do 1761 IFS=$as_save_IFS 1762 test -z "$as_dir" && as_dir=. 1763 for ac_exec_ext in '' $ac_executable_extensions; do 1764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1767 break 2 1768 fi 1769done 1770done 1771 1772fi 1773fi 1774CC=$ac_cv_prog_CC 1775if test -n "$CC"; then 1776 echo "$as_me:$LINENO: result: $CC" >&5 1777echo "${ECHO_T}$CC" >&6 1778else 1779 echo "$as_me:$LINENO: result: no" >&5 1780echo "${ECHO_T}no" >&6 1781fi 1782 1783 test -n "$CC" && break 1784 done 1785fi 1786if test -z "$CC"; then 1787 ac_ct_CC=$CC 1788 for ac_prog in cl 1789do 1790 # Extract the first word of "$ac_prog", so it can be a program name with args. 1791set dummy $ac_prog; ac_word=$2 1792echo "$as_me:$LINENO: checking for $ac_word" >&5 1793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1795 echo $ECHO_N "(cached) $ECHO_C" >&6 1796else 1797 if test -n "$ac_ct_CC"; then 1798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1799else 1800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1801for as_dir in $PATH 1802do 1803 IFS=$as_save_IFS 1804 test -z "$as_dir" && as_dir=. 1805 for ac_exec_ext in '' $ac_executable_extensions; do 1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1807 ac_cv_prog_ac_ct_CC="$ac_prog" 1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1809 break 2 1810 fi 1811done 1812done 1813 1814fi 1815fi 1816ac_ct_CC=$ac_cv_prog_ac_ct_CC 1817if test -n "$ac_ct_CC"; then 1818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1819echo "${ECHO_T}$ac_ct_CC" >&6 1820else 1821 echo "$as_me:$LINENO: result: no" >&5 1822echo "${ECHO_T}no" >&6 1823fi 1824 1825 test -n "$ac_ct_CC" && break 1826done 1827 1828 CC=$ac_ct_CC 1829fi 1830 1831fi 1832 1833 1834test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1835See \`config.log' for more details." >&5 1836echo "$as_me: error: no acceptable C compiler found in \$PATH 1837See \`config.log' for more details." >&2;} 1838 { (exit 1); exit 1; }; } 1839 1840# Provide some information about the compiler. 1841echo "$as_me:$LINENO:" \ 1842 "checking for C compiler version" >&5 1843ac_compiler=`set X $ac_compile; echo $2` 1844{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1845 (eval $ac_compiler --version </dev/null >&5) 2>&5 1846 ac_status=$? 1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1848 (exit $ac_status); } 1849{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1850 (eval $ac_compiler -v </dev/null >&5) 2>&5 1851 ac_status=$? 1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1853 (exit $ac_status); } 1854{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1855 (eval $ac_compiler -V </dev/null >&5) 2>&5 1856 ac_status=$? 1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1858 (exit $ac_status); } 1859 1860cat >conftest.$ac_ext <<_ACEOF 1861/* confdefs.h. */ 1862_ACEOF 1863cat confdefs.h >>conftest.$ac_ext 1864cat >>conftest.$ac_ext <<_ACEOF 1865/* end confdefs.h. */ 1866 1867int 1868main () 1869{ 1870 1871 ; 1872 return 0; 1873} 1874_ACEOF 1875ac_clean_files_save=$ac_clean_files 1876ac_clean_files="$ac_clean_files a.out a.exe b.out" 1877# Try to create an executable without -o first, disregard a.out. 1878# It will help us diagnose broken compilers, and finding out an intuition 1879# of exeext. 1880echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1881echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1882ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1883if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1884 (eval $ac_link_default) 2>&5 1885 ac_status=$? 1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1887 (exit $ac_status); }; then 1888 # Find the output, starting from the most likely. This scheme is 1889# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1890# resort. 1891 1892# Be careful to initialize this variable, since it used to be cached. 1893# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1894ac_cv_exeext= 1895# b.out is created by i960 compilers. 1896for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1897do 1898 test -f "$ac_file" || continue 1899 case $ac_file in 1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1901 ;; 1902 conftest.$ac_ext ) 1903 # This is the source file. 1904 ;; 1905 [ab].out ) 1906 # We found the default executable, but exeext='' is most 1907 # certainly right. 1908 break;; 1909 *.* ) 1910 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1911 # FIXME: I believe we export ac_cv_exeext for Libtool, 1912 # but it would be cool to find out if it's true. Does anybody 1913 # maintain Libtool? --akim. 1914 export ac_cv_exeext 1915 break;; 1916 * ) 1917 break;; 1918 esac 1919done 1920else 1921 echo "$as_me: failed program was:" >&5 1922sed 's/^/| /' conftest.$ac_ext >&5 1923 1924{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1925See \`config.log' for more details." >&5 1926echo "$as_me: error: C compiler cannot create executables 1927See \`config.log' for more details." >&2;} 1928 { (exit 77); exit 77; }; } 1929fi 1930 1931ac_exeext=$ac_cv_exeext 1932echo "$as_me:$LINENO: result: $ac_file" >&5 1933echo "${ECHO_T}$ac_file" >&6 1934 1935# Check the compiler produces executables we can run. If not, either 1936# the compiler is broken, or we cross compile. 1937echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1938echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1939# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1940# If not cross compiling, check that we can run a simple program. 1941if test "$cross_compiling" != yes; then 1942 if { ac_try='./$ac_file' 1943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1944 (eval $ac_try) 2>&5 1945 ac_status=$? 1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1947 (exit $ac_status); }; }; then 1948 cross_compiling=no 1949 else 1950 if test "$cross_compiling" = maybe; then 1951 cross_compiling=yes 1952 else 1953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1954If you meant to cross compile, use \`--host'. 1955See \`config.log' for more details." >&5 1956echo "$as_me: error: cannot run C compiled programs. 1957If you meant to cross compile, use \`--host'. 1958See \`config.log' for more details." >&2;} 1959 { (exit 1); exit 1; }; } 1960 fi 1961 fi 1962fi 1963echo "$as_me:$LINENO: result: yes" >&5 1964echo "${ECHO_T}yes" >&6 1965 1966rm -f a.out a.exe conftest$ac_cv_exeext b.out 1967ac_clean_files=$ac_clean_files_save 1968# Check the compiler produces executables we can run. If not, either 1969# the compiler is broken, or we cross compile. 1970echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1971echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1972echo "$as_me:$LINENO: result: $cross_compiling" >&5 1973echo "${ECHO_T}$cross_compiling" >&6 1974 1975echo "$as_me:$LINENO: checking for suffix of executables" >&5 1976echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1978 (eval $ac_link) 2>&5 1979 ac_status=$? 1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1981 (exit $ac_status); }; then 1982 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1983# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1984# work properly (i.e., refer to `conftest.exe'), while it won't with 1985# `rm'. 1986for ac_file in conftest.exe conftest conftest.*; do 1987 test -f "$ac_file" || continue 1988 case $ac_file in 1989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1991 export ac_cv_exeext 1992 break;; 1993 * ) break;; 1994 esac 1995done 1996else 1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1998See \`config.log' for more details." >&5 1999echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2000See \`config.log' for more details." >&2;} 2001 { (exit 1); exit 1; }; } 2002fi 2003 2004rm -f conftest$ac_cv_exeext 2005echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2006echo "${ECHO_T}$ac_cv_exeext" >&6 2007 2008rm -f conftest.$ac_ext 2009EXEEXT=$ac_cv_exeext 2010ac_exeext=$EXEEXT 2011echo "$as_me:$LINENO: checking for suffix of object files" >&5 2012echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2013if test "${ac_cv_objext+set}" = set; then 2014 echo $ECHO_N "(cached) $ECHO_C" >&6 2015else 2016 cat >conftest.$ac_ext <<_ACEOF 2017/* confdefs.h. */ 2018_ACEOF 2019cat confdefs.h >>conftest.$ac_ext 2020cat >>conftest.$ac_ext <<_ACEOF 2021/* end confdefs.h. */ 2022 2023int 2024main () 2025{ 2026 2027 ; 2028 return 0; 2029} 2030_ACEOF 2031rm -f conftest.o conftest.obj 2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2033 (eval $ac_compile) 2>&5 2034 ac_status=$? 2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2036 (exit $ac_status); }; then 2037 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2038 case $ac_file in 2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2040 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2041 break;; 2042 esac 2043done 2044else 2045 echo "$as_me: failed program was:" >&5 2046sed 's/^/| /' conftest.$ac_ext >&5 2047 2048{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2049See \`config.log' for more details." >&5 2050echo "$as_me: error: cannot compute suffix of object files: cannot compile 2051See \`config.log' for more details." >&2;} 2052 { (exit 1); exit 1; }; } 2053fi 2054 2055rm -f conftest.$ac_cv_objext conftest.$ac_ext 2056fi 2057echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2058echo "${ECHO_T}$ac_cv_objext" >&6 2059OBJEXT=$ac_cv_objext 2060ac_objext=$OBJEXT 2061echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2062echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2063if test "${ac_cv_c_compiler_gnu+set}" = set; then 2064 echo $ECHO_N "(cached) $ECHO_C" >&6 2065else 2066 cat >conftest.$ac_ext <<_ACEOF 2067/* confdefs.h. */ 2068_ACEOF 2069cat confdefs.h >>conftest.$ac_ext 2070cat >>conftest.$ac_ext <<_ACEOF 2071/* end confdefs.h. */ 2072 2073int 2074main () 2075{ 2076#ifndef __GNUC__ 2077 choke me 2078#endif 2079 2080 ; 2081 return 0; 2082} 2083_ACEOF 2084rm -f conftest.$ac_objext 2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2086 (eval $ac_compile) 2>conftest.er1 2087 ac_status=$? 2088 grep -v '^ *+' conftest.er1 >conftest.err 2089 rm -f conftest.er1 2090 cat conftest.err >&5 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2092 (exit $ac_status); } && 2093 { ac_try='test -z "$ac_c_werror_flag" 2094 || test ! -s conftest.err' 2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2096 (eval $ac_try) 2>&5 2097 ac_status=$? 2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2099 (exit $ac_status); }; } && 2100 { ac_try='test -s conftest.$ac_objext' 2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2102 (eval $ac_try) 2>&5 2103 ac_status=$? 2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2105 (exit $ac_status); }; }; then 2106 ac_compiler_gnu=yes 2107else 2108 echo "$as_me: failed program was:" >&5 2109sed 's/^/| /' conftest.$ac_ext >&5 2110 2111ac_compiler_gnu=no 2112fi 2113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2114ac_cv_c_compiler_gnu=$ac_compiler_gnu 2115 2116fi 2117echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2118echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2119GCC=`test $ac_compiler_gnu = yes && echo yes` 2120ac_test_CFLAGS=${CFLAGS+set} 2121ac_save_CFLAGS=$CFLAGS 2122CFLAGS="-g" 2123echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2124echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2125if test "${ac_cv_prog_cc_g+set}" = set; then 2126 echo $ECHO_N "(cached) $ECHO_C" >&6 2127else 2128 cat >conftest.$ac_ext <<_ACEOF 2129/* confdefs.h. */ 2130_ACEOF 2131cat confdefs.h >>conftest.$ac_ext 2132cat >>conftest.$ac_ext <<_ACEOF 2133/* end confdefs.h. */ 2134 2135int 2136main () 2137{ 2138 2139 ; 2140 return 0; 2141} 2142_ACEOF 2143rm -f conftest.$ac_objext 2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2145 (eval $ac_compile) 2>conftest.er1 2146 ac_status=$? 2147 grep -v '^ *+' conftest.er1 >conftest.err 2148 rm -f conftest.er1 2149 cat conftest.err >&5 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); } && 2152 { ac_try='test -z "$ac_c_werror_flag" 2153 || test ! -s conftest.err' 2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2155 (eval $ac_try) 2>&5 2156 ac_status=$? 2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2158 (exit $ac_status); }; } && 2159 { ac_try='test -s conftest.$ac_objext' 2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2161 (eval $ac_try) 2>&5 2162 ac_status=$? 2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2164 (exit $ac_status); }; }; then 2165 ac_cv_prog_cc_g=yes 2166else 2167 echo "$as_me: failed program was:" >&5 2168sed 's/^/| /' conftest.$ac_ext >&5 2169 2170ac_cv_prog_cc_g=no 2171fi 2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2173fi 2174echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2175echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2176if test "$ac_test_CFLAGS" = set; then 2177 CFLAGS=$ac_save_CFLAGS 2178elif test $ac_cv_prog_cc_g = yes; then 2179 if test "$GCC" = yes; then 2180 CFLAGS="-g -O2" 2181 else 2182 CFLAGS="-g" 2183 fi 2184else 2185 if test "$GCC" = yes; then 2186 CFLAGS="-O2" 2187 else 2188 CFLAGS= 2189 fi 2190fi 2191echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2192echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2193if test "${ac_cv_prog_cc_stdc+set}" = set; then 2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2195else 2196 ac_cv_prog_cc_stdc=no 2197ac_save_CC=$CC 2198cat >conftest.$ac_ext <<_ACEOF 2199/* confdefs.h. */ 2200_ACEOF 2201cat confdefs.h >>conftest.$ac_ext 2202cat >>conftest.$ac_ext <<_ACEOF 2203/* end confdefs.h. */ 2204#include <stdarg.h> 2205#include <stdio.h> 2206#include <sys/types.h> 2207#include <sys/stat.h> 2208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2209struct buf { int x; }; 2210FILE * (*rcsopen) (struct buf *, struct stat *, int); 2211static char *e (p, i) 2212 char **p; 2213 int i; 2214{ 2215 return p[i]; 2216} 2217static char *f (char * (*g) (char **, int), char **p, ...) 2218{ 2219 char *s; 2220 va_list v; 2221 va_start (v,p); 2222 s = g (p, va_arg (v,int)); 2223 va_end (v); 2224 return s; 2225} 2226 2227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2228 function prototypes and stuff, but not '\xHH' hex character constants. 2229 These don't provoke an error unfortunately, instead are silently treated 2230 as 'x'. The following induces an error, until -std1 is added to get 2231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2232 array size at least. It's necessary to write '\x00'==0 to get something 2233 that's true only with -std1. */ 2234int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2235 2236int test (int i, double x); 2237struct s1 {int (*f) (int a);}; 2238struct s2 {int (*f) (double a);}; 2239int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2240int argc; 2241char **argv; 2242int 2243main () 2244{ 2245return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250# Don't try gcc -ansi; that turns off useful extensions and 2251# breaks some systems' header files. 2252# AIX -qlanglvl=ansi 2253# Ultrix and OSF/1 -std1 2254# HP-UX 10.20 and later -Ae 2255# HP-UX older versions -Aa -D_HPUX_SOURCE 2256# SVR4 -Xc -D__EXTENSIONS__ 2257for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2258do 2259 CC="$ac_save_CC $ac_arg" 2260 rm -f conftest.$ac_objext 2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2262 (eval $ac_compile) 2>conftest.er1 2263 ac_status=$? 2264 grep -v '^ *+' conftest.er1 >conftest.err 2265 rm -f conftest.er1 2266 cat conftest.err >&5 2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2268 (exit $ac_status); } && 2269 { ac_try='test -z "$ac_c_werror_flag" 2270 || test ! -s conftest.err' 2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2272 (eval $ac_try) 2>&5 2273 ac_status=$? 2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2275 (exit $ac_status); }; } && 2276 { ac_try='test -s conftest.$ac_objext' 2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2278 (eval $ac_try) 2>&5 2279 ac_status=$? 2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2281 (exit $ac_status); }; }; then 2282 ac_cv_prog_cc_stdc=$ac_arg 2283break 2284else 2285 echo "$as_me: failed program was:" >&5 2286sed 's/^/| /' conftest.$ac_ext >&5 2287 2288fi 2289rm -f conftest.err conftest.$ac_objext 2290done 2291rm -f conftest.$ac_ext conftest.$ac_objext 2292CC=$ac_save_CC 2293 2294fi 2295 2296case "x$ac_cv_prog_cc_stdc" in 2297 x|xno) 2298 echo "$as_me:$LINENO: result: none needed" >&5 2299echo "${ECHO_T}none needed" >&6 ;; 2300 *) 2301 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2302echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2303 CC="$CC $ac_cv_prog_cc_stdc" ;; 2304esac 2305 2306# Some people use a C++ compiler to compile C. Since we use `exit', 2307# in C++ we need to declare it. In case someone uses the same compiler 2308# for both compiling C and C++ we need to have the C++ compiler decide 2309# the declaration of exit, since it's the most demanding environment. 2310cat >conftest.$ac_ext <<_ACEOF 2311#ifndef __cplusplus 2312 choke me 2313#endif 2314_ACEOF 2315rm -f conftest.$ac_objext 2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2317 (eval $ac_compile) 2>conftest.er1 2318 ac_status=$? 2319 grep -v '^ *+' conftest.er1 >conftest.err 2320 rm -f conftest.er1 2321 cat conftest.err >&5 2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2323 (exit $ac_status); } && 2324 { ac_try='test -z "$ac_c_werror_flag" 2325 || test ! -s conftest.err' 2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2327 (eval $ac_try) 2>&5 2328 ac_status=$? 2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2330 (exit $ac_status); }; } && 2331 { ac_try='test -s conftest.$ac_objext' 2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2333 (eval $ac_try) 2>&5 2334 ac_status=$? 2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2336 (exit $ac_status); }; }; then 2337 for ac_declaration in \ 2338 '' \ 2339 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2340 'extern "C" void std::exit (int); using std::exit;' \ 2341 'extern "C" void exit (int) throw ();' \ 2342 'extern "C" void exit (int);' \ 2343 'void exit (int);' 2344do 2345 cat >conftest.$ac_ext <<_ACEOF 2346/* confdefs.h. */ 2347_ACEOF 2348cat confdefs.h >>conftest.$ac_ext 2349cat >>conftest.$ac_ext <<_ACEOF 2350/* end confdefs.h. */ 2351$ac_declaration 2352#include <stdlib.h> 2353int 2354main () 2355{ 2356exit (42); 2357 ; 2358 return 0; 2359} 2360_ACEOF 2361rm -f conftest.$ac_objext 2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2363 (eval $ac_compile) 2>conftest.er1 2364 ac_status=$? 2365 grep -v '^ *+' conftest.er1 >conftest.err 2366 rm -f conftest.er1 2367 cat conftest.err >&5 2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2369 (exit $ac_status); } && 2370 { ac_try='test -z "$ac_c_werror_flag" 2371 || test ! -s conftest.err' 2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2373 (eval $ac_try) 2>&5 2374 ac_status=$? 2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2376 (exit $ac_status); }; } && 2377 { ac_try='test -s conftest.$ac_objext' 2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2379 (eval $ac_try) 2>&5 2380 ac_status=$? 2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2382 (exit $ac_status); }; }; then 2383 : 2384else 2385 echo "$as_me: failed program was:" >&5 2386sed 's/^/| /' conftest.$ac_ext >&5 2387 2388continue 2389fi 2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2391 cat >conftest.$ac_ext <<_ACEOF 2392/* confdefs.h. */ 2393_ACEOF 2394cat confdefs.h >>conftest.$ac_ext 2395cat >>conftest.$ac_ext <<_ACEOF 2396/* end confdefs.h. */ 2397$ac_declaration 2398int 2399main () 2400{ 2401exit (42); 2402 ; 2403 return 0; 2404} 2405_ACEOF 2406rm -f conftest.$ac_objext 2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2408 (eval $ac_compile) 2>conftest.er1 2409 ac_status=$? 2410 grep -v '^ *+' conftest.er1 >conftest.err 2411 rm -f conftest.er1 2412 cat conftest.err >&5 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); } && 2415 { ac_try='test -z "$ac_c_werror_flag" 2416 || test ! -s conftest.err' 2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2418 (eval $ac_try) 2>&5 2419 ac_status=$? 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2421 (exit $ac_status); }; } && 2422 { ac_try='test -s conftest.$ac_objext' 2423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2424 (eval $ac_try) 2>&5 2425 ac_status=$? 2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2427 (exit $ac_status); }; }; then 2428 break 2429else 2430 echo "$as_me: failed program was:" >&5 2431sed 's/^/| /' conftest.$ac_ext >&5 2432 2433fi 2434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2435done 2436rm -f conftest* 2437if test -n "$ac_declaration"; then 2438 echo '#ifdef __cplusplus' >>confdefs.h 2439 echo $ac_declaration >>confdefs.h 2440 echo '#endif' >>confdefs.h 2441fi 2442 2443else 2444 echo "$as_me: failed program was:" >&5 2445sed 's/^/| /' conftest.$ac_ext >&5 2446 2447fi 2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2449ac_ext=c 2450ac_cpp='$CPP $CPPFLAGS' 2451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2453ac_compiler_gnu=$ac_cv_c_compiler_gnu 2454 2455 2456ac_ext=c 2457ac_cpp='$CPP $CPPFLAGS' 2458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2460ac_compiler_gnu=$ac_cv_c_compiler_gnu 2461echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2462echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2463# On Suns, sometimes $CPP names a directory. 2464if test -n "$CPP" && test -d "$CPP"; then 2465 CPP= 2466fi 2467if test -z "$CPP"; then 2468 if test "${ac_cv_prog_CPP+set}" = set; then 2469 echo $ECHO_N "(cached) $ECHO_C" >&6 2470else 2471 # Double quotes because CPP needs to be expanded 2472 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2473 do 2474 ac_preproc_ok=false 2475for ac_c_preproc_warn_flag in '' yes 2476do 2477 # Use a header file that comes with gcc, so configuring glibc 2478 # with a fresh cross-compiler works. 2479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2480 # <limits.h> exists even on freestanding compilers. 2481 # On the NeXT, cc -E runs the code through the compiler's parser, 2482 # not just through cpp. "Syntax error" is here to catch this case. 2483 cat >conftest.$ac_ext <<_ACEOF 2484/* confdefs.h. */ 2485_ACEOF 2486cat confdefs.h >>conftest.$ac_ext 2487cat >>conftest.$ac_ext <<_ACEOF 2488/* end confdefs.h. */ 2489#ifdef __STDC__ 2490# include <limits.h> 2491#else 2492# include <assert.h> 2493#endif 2494 Syntax error 2495_ACEOF 2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2498 ac_status=$? 2499 grep -v '^ *+' conftest.er1 >conftest.err 2500 rm -f conftest.er1 2501 cat conftest.err >&5 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); } >/dev/null; then 2504 if test -s conftest.err; then 2505 ac_cpp_err=$ac_c_preproc_warn_flag 2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2507 else 2508 ac_cpp_err= 2509 fi 2510else 2511 ac_cpp_err=yes 2512fi 2513if test -z "$ac_cpp_err"; then 2514 : 2515else 2516 echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519 # Broken: fails on valid input. 2520continue 2521fi 2522rm -f conftest.err conftest.$ac_ext 2523 2524 # OK, works on sane cases. Now check whether non-existent headers 2525 # can be detected and how. 2526 cat >conftest.$ac_ext <<_ACEOF 2527/* confdefs.h. */ 2528_ACEOF 2529cat confdefs.h >>conftest.$ac_ext 2530cat >>conftest.$ac_ext <<_ACEOF 2531/* end confdefs.h. */ 2532#include <ac_nonexistent.h> 2533_ACEOF 2534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2536 ac_status=$? 2537 grep -v '^ *+' conftest.er1 >conftest.err 2538 rm -f conftest.er1 2539 cat conftest.err >&5 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); } >/dev/null; then 2542 if test -s conftest.err; then 2543 ac_cpp_err=$ac_c_preproc_warn_flag 2544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2545 else 2546 ac_cpp_err= 2547 fi 2548else 2549 ac_cpp_err=yes 2550fi 2551if test -z "$ac_cpp_err"; then 2552 # Broken: success on invalid input. 2553continue 2554else 2555 echo "$as_me: failed program was:" >&5 2556sed 's/^/| /' conftest.$ac_ext >&5 2557 2558 # Passes both tests. 2559ac_preproc_ok=: 2560break 2561fi 2562rm -f conftest.err conftest.$ac_ext 2563 2564done 2565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2566rm -f conftest.err conftest.$ac_ext 2567if $ac_preproc_ok; then 2568 break 2569fi 2570 2571 done 2572 ac_cv_prog_CPP=$CPP 2573 2574fi 2575 CPP=$ac_cv_prog_CPP 2576else 2577 ac_cv_prog_CPP=$CPP 2578fi 2579echo "$as_me:$LINENO: result: $CPP" >&5 2580echo "${ECHO_T}$CPP" >&6 2581ac_preproc_ok=false 2582for ac_c_preproc_warn_flag in '' yes 2583do 2584 # Use a header file that comes with gcc, so configuring glibc 2585 # with a fresh cross-compiler works. 2586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2587 # <limits.h> exists even on freestanding compilers. 2588 # On the NeXT, cc -E runs the code through the compiler's parser, 2589 # not just through cpp. "Syntax error" is here to catch this case. 2590 cat >conftest.$ac_ext <<_ACEOF 2591/* confdefs.h. */ 2592_ACEOF 2593cat confdefs.h >>conftest.$ac_ext 2594cat >>conftest.$ac_ext <<_ACEOF 2595/* end confdefs.h. */ 2596#ifdef __STDC__ 2597# include <limits.h> 2598#else 2599# include <assert.h> 2600#endif 2601 Syntax error 2602_ACEOF 2603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2605 ac_status=$? 2606 grep -v '^ *+' conftest.er1 >conftest.err 2607 rm -f conftest.er1 2608 cat conftest.err >&5 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2610 (exit $ac_status); } >/dev/null; then 2611 if test -s conftest.err; then 2612 ac_cpp_err=$ac_c_preproc_warn_flag 2613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2614 else 2615 ac_cpp_err= 2616 fi 2617else 2618 ac_cpp_err=yes 2619fi 2620if test -z "$ac_cpp_err"; then 2621 : 2622else 2623 echo "$as_me: failed program was:" >&5 2624sed 's/^/| /' conftest.$ac_ext >&5 2625 2626 # Broken: fails on valid input. 2627continue 2628fi 2629rm -f conftest.err conftest.$ac_ext 2630 2631 # OK, works on sane cases. Now check whether non-existent headers 2632 # can be detected and how. 2633 cat >conftest.$ac_ext <<_ACEOF 2634/* confdefs.h. */ 2635_ACEOF 2636cat confdefs.h >>conftest.$ac_ext 2637cat >>conftest.$ac_ext <<_ACEOF 2638/* end confdefs.h. */ 2639#include <ac_nonexistent.h> 2640_ACEOF 2641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2643 ac_status=$? 2644 grep -v '^ *+' conftest.er1 >conftest.err 2645 rm -f conftest.er1 2646 cat conftest.err >&5 2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2648 (exit $ac_status); } >/dev/null; then 2649 if test -s conftest.err; then 2650 ac_cpp_err=$ac_c_preproc_warn_flag 2651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2652 else 2653 ac_cpp_err= 2654 fi 2655else 2656 ac_cpp_err=yes 2657fi 2658if test -z "$ac_cpp_err"; then 2659 # Broken: success on invalid input. 2660continue 2661else 2662 echo "$as_me: failed program was:" >&5 2663sed 's/^/| /' conftest.$ac_ext >&5 2664 2665 # Passes both tests. 2666ac_preproc_ok=: 2667break 2668fi 2669rm -f conftest.err conftest.$ac_ext 2670 2671done 2672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2673rm -f conftest.err conftest.$ac_ext 2674if $ac_preproc_ok; then 2675 : 2676else 2677 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2678See \`config.log' for more details." >&5 2679echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2680See \`config.log' for more details." >&2;} 2681 { (exit 1); exit 1; }; } 2682fi 2683 2684ac_ext=c 2685ac_cpp='$CPP $CPPFLAGS' 2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2688ac_compiler_gnu=$ac_cv_c_compiler_gnu 2689 2690 2691echo "$as_me:$LINENO: checking for egrep" >&5 2692echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2693if test "${ac_cv_prog_egrep+set}" = set; then 2694 echo $ECHO_N "(cached) $ECHO_C" >&6 2695else 2696 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2697 then ac_cv_prog_egrep='grep -E' 2698 else ac_cv_prog_egrep='egrep' 2699 fi 2700fi 2701echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2702echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2703 EGREP=$ac_cv_prog_egrep 2704 2705 2706echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2707echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2708if test "${ac_cv_header_stdc+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 cat >conftest.$ac_ext <<_ACEOF 2712/* confdefs.h. */ 2713_ACEOF 2714cat confdefs.h >>conftest.$ac_ext 2715cat >>conftest.$ac_ext <<_ACEOF 2716/* end confdefs.h. */ 2717#include <stdlib.h> 2718#include <stdarg.h> 2719#include <string.h> 2720#include <float.h> 2721 2722int 2723main () 2724{ 2725 2726 ; 2727 return 0; 2728} 2729_ACEOF 2730rm -f conftest.$ac_objext 2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2732 (eval $ac_compile) 2>conftest.er1 2733 ac_status=$? 2734 grep -v '^ *+' conftest.er1 >conftest.err 2735 rm -f conftest.er1 2736 cat conftest.err >&5 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); } && 2739 { ac_try='test -z "$ac_c_werror_flag" 2740 || test ! -s conftest.err' 2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2742 (eval $ac_try) 2>&5 2743 ac_status=$? 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); }; } && 2746 { ac_try='test -s conftest.$ac_objext' 2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2748 (eval $ac_try) 2>&5 2749 ac_status=$? 2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2751 (exit $ac_status); }; }; then 2752 ac_cv_header_stdc=yes 2753else 2754 echo "$as_me: failed program was:" >&5 2755sed 's/^/| /' conftest.$ac_ext >&5 2756 2757ac_cv_header_stdc=no 2758fi 2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2760 2761if test $ac_cv_header_stdc = yes; then 2762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2763 cat >conftest.$ac_ext <<_ACEOF 2764/* confdefs.h. */ 2765_ACEOF 2766cat confdefs.h >>conftest.$ac_ext 2767cat >>conftest.$ac_ext <<_ACEOF 2768/* end confdefs.h. */ 2769#include <string.h> 2770 2771_ACEOF 2772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2773 $EGREP "memchr" >/dev/null 2>&1; then 2774 : 2775else 2776 ac_cv_header_stdc=no 2777fi 2778rm -f conftest* 2779 2780fi 2781 2782if test $ac_cv_header_stdc = yes; then 2783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2784 cat >conftest.$ac_ext <<_ACEOF 2785/* confdefs.h. */ 2786_ACEOF 2787cat confdefs.h >>conftest.$ac_ext 2788cat >>conftest.$ac_ext <<_ACEOF 2789/* end confdefs.h. */ 2790#include <stdlib.h> 2791 2792_ACEOF 2793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2794 $EGREP "free" >/dev/null 2>&1; then 2795 : 2796else 2797 ac_cv_header_stdc=no 2798fi 2799rm -f conftest* 2800 2801fi 2802 2803if test $ac_cv_header_stdc = yes; then 2804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2805 if test "$cross_compiling" = yes; then 2806 : 2807else 2808 cat >conftest.$ac_ext <<_ACEOF 2809/* confdefs.h. */ 2810_ACEOF 2811cat confdefs.h >>conftest.$ac_ext 2812cat >>conftest.$ac_ext <<_ACEOF 2813/* end confdefs.h. */ 2814#include <ctype.h> 2815#if ((' ' & 0x0FF) == 0x020) 2816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2818#else 2819# define ISLOWER(c) \ 2820 (('a' <= (c) && (c) <= 'i') \ 2821 || ('j' <= (c) && (c) <= 'r') \ 2822 || ('s' <= (c) && (c) <= 'z')) 2823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2824#endif 2825 2826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2827int 2828main () 2829{ 2830 int i; 2831 for (i = 0; i < 256; i++) 2832 if (XOR (islower (i), ISLOWER (i)) 2833 || toupper (i) != TOUPPER (i)) 2834 exit(2); 2835 exit (0); 2836} 2837_ACEOF 2838rm -f conftest$ac_exeext 2839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2840 (eval $ac_link) 2>&5 2841 ac_status=$? 2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2845 (eval $ac_try) 2>&5 2846 ac_status=$? 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); }; }; then 2849 : 2850else 2851 echo "$as_me: program exited with status $ac_status" >&5 2852echo "$as_me: failed program was:" >&5 2853sed 's/^/| /' conftest.$ac_ext >&5 2854 2855( exit $ac_status ) 2856ac_cv_header_stdc=no 2857fi 2858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2859fi 2860fi 2861fi 2862echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2863echo "${ECHO_T}$ac_cv_header_stdc" >&6 2864if test $ac_cv_header_stdc = yes; then 2865 2866cat >>confdefs.h <<\_ACEOF 2867#define STDC_HEADERS 1 2868_ACEOF 2869 2870fi 2871 2872# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2883 inttypes.h stdint.h unistd.h 2884do 2885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2886echo "$as_me:$LINENO: checking for $ac_header" >&5 2887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2888if eval "test \"\${$as_ac_Header+set}\" = set"; then 2889 echo $ECHO_N "(cached) $ECHO_C" >&6 2890else 2891 cat >conftest.$ac_ext <<_ACEOF 2892/* confdefs.h. */ 2893_ACEOF 2894cat confdefs.h >>conftest.$ac_ext 2895cat >>conftest.$ac_ext <<_ACEOF 2896/* end confdefs.h. */ 2897$ac_includes_default 2898 2899#include <$ac_header> 2900_ACEOF 2901rm -f conftest.$ac_objext 2902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2903 (eval $ac_compile) 2>conftest.er1 2904 ac_status=$? 2905 grep -v '^ *+' conftest.er1 >conftest.err 2906 rm -f conftest.er1 2907 cat conftest.err >&5 2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2909 (exit $ac_status); } && 2910 { ac_try='test -z "$ac_c_werror_flag" 2911 || test ! -s conftest.err' 2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2913 (eval $ac_try) 2>&5 2914 ac_status=$? 2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2916 (exit $ac_status); }; } && 2917 { ac_try='test -s conftest.$ac_objext' 2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2919 (eval $ac_try) 2>&5 2920 ac_status=$? 2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2922 (exit $ac_status); }; }; then 2923 eval "$as_ac_Header=yes" 2924else 2925 echo "$as_me: failed program was:" >&5 2926sed 's/^/| /' conftest.$ac_ext >&5 2927 2928eval "$as_ac_Header=no" 2929fi 2930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2931fi 2932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2934if test `eval echo '${'$as_ac_Header'}'` = yes; then 2935 cat >>confdefs.h <<_ACEOF 2936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2937_ACEOF 2938 2939fi 2940 2941done 2942 2943 2944if test "${ac_cv_header_minix_config_h+set}" = set; then 2945 echo "$as_me:$LINENO: checking for minix/config.h" >&5 2946echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2947if test "${ac_cv_header_minix_config_h+set}" = set; then 2948 echo $ECHO_N "(cached) $ECHO_C" >&6 2949fi 2950echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 2951echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2952else 2953 # Is the header compilable? 2954echo "$as_me:$LINENO: checking minix/config.h usability" >&5 2955echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 2956cat >conftest.$ac_ext <<_ACEOF 2957/* confdefs.h. */ 2958_ACEOF 2959cat confdefs.h >>conftest.$ac_ext 2960cat >>conftest.$ac_ext <<_ACEOF 2961/* end confdefs.h. */ 2962$ac_includes_default 2963#include <minix/config.h> 2964_ACEOF 2965rm -f conftest.$ac_objext 2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2967 (eval $ac_compile) 2>conftest.er1 2968 ac_status=$? 2969 grep -v '^ *+' conftest.er1 >conftest.err 2970 rm -f conftest.er1 2971 cat conftest.err >&5 2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2973 (exit $ac_status); } && 2974 { ac_try='test -z "$ac_c_werror_flag" 2975 || test ! -s conftest.err' 2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2977 (eval $ac_try) 2>&5 2978 ac_status=$? 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); }; } && 2981 { ac_try='test -s conftest.$ac_objext' 2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2983 (eval $ac_try) 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); }; }; then 2987 ac_header_compiler=yes 2988else 2989 echo "$as_me: failed program was:" >&5 2990sed 's/^/| /' conftest.$ac_ext >&5 2991 2992ac_header_compiler=no 2993fi 2994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 2996echo "${ECHO_T}$ac_header_compiler" >&6 2997 2998# Is the header present? 2999echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3000echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3001cat >conftest.$ac_ext <<_ACEOF 3002/* confdefs.h. */ 3003_ACEOF 3004cat confdefs.h >>conftest.$ac_ext 3005cat >>conftest.$ac_ext <<_ACEOF 3006/* end confdefs.h. */ 3007#include <minix/config.h> 3008_ACEOF 3009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3011 ac_status=$? 3012 grep -v '^ *+' conftest.er1 >conftest.err 3013 rm -f conftest.er1 3014 cat conftest.err >&5 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); } >/dev/null; then 3017 if test -s conftest.err; then 3018 ac_cpp_err=$ac_c_preproc_warn_flag 3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3020 else 3021 ac_cpp_err= 3022 fi 3023else 3024 ac_cpp_err=yes 3025fi 3026if test -z "$ac_cpp_err"; then 3027 ac_header_preproc=yes 3028else 3029 echo "$as_me: failed program was:" >&5 3030sed 's/^/| /' conftest.$ac_ext >&5 3031 3032 ac_header_preproc=no 3033fi 3034rm -f conftest.err conftest.$ac_ext 3035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3036echo "${ECHO_T}$ac_header_preproc" >&6 3037 3038# So? What about this header? 3039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3040 yes:no: ) 3041 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3042echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3043 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3044echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3045 ac_header_preproc=yes 3046 ;; 3047 no:yes:* ) 3048 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3049echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3050 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3051echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3052 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3053echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3054 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3055echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3056 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3057echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3058 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3059echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3060 ( 3061 cat <<\_ASBOX 3062## ----------------------------------- ## 3063## Report this to bug-readline@gnu.org ## 3064## ----------------------------------- ## 3065_ASBOX 3066 ) | 3067 sed "s/^/$as_me: WARNING: /" >&2 3068 ;; 3069esac 3070echo "$as_me:$LINENO: checking for minix/config.h" >&5 3071echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3072if test "${ac_cv_header_minix_config_h+set}" = set; then 3073 echo $ECHO_N "(cached) $ECHO_C" >&6 3074else 3075 ac_cv_header_minix_config_h=$ac_header_preproc 3076fi 3077echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3078echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3079 3080fi 3081if test $ac_cv_header_minix_config_h = yes; then 3082 MINIX=yes 3083else 3084 MINIX= 3085fi 3086 3087 3088if test "$MINIX" = yes; then 3089 3090cat >>confdefs.h <<\_ACEOF 3091#define _POSIX_SOURCE 1 3092_ACEOF 3093 3094 3095cat >>confdefs.h <<\_ACEOF 3096#define _POSIX_1_SOURCE 2 3097_ACEOF 3098 3099 3100cat >>confdefs.h <<\_ACEOF 3101#define _MINIX 1 3102_ACEOF 3103 3104fi 3105 3106 3107# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. 3108test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" 3109 3110if test $ac_cv_c_compiler_gnu = yes; then 3111 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3112echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3113if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3114 echo $ECHO_N "(cached) $ECHO_C" >&6 3115else 3116 ac_pattern="Autoconf.*'x'" 3117 cat >conftest.$ac_ext <<_ACEOF 3118/* confdefs.h. */ 3119_ACEOF 3120cat confdefs.h >>conftest.$ac_ext 3121cat >>conftest.$ac_ext <<_ACEOF 3122/* end confdefs.h. */ 3123#include <sgtty.h> 3124Autoconf TIOCGETP 3125_ACEOF 3126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3127 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3128 ac_cv_prog_gcc_traditional=yes 3129else 3130 ac_cv_prog_gcc_traditional=no 3131fi 3132rm -f conftest* 3133 3134 3135 if test $ac_cv_prog_gcc_traditional = no; then 3136 cat >conftest.$ac_ext <<_ACEOF 3137/* confdefs.h. */ 3138_ACEOF 3139cat confdefs.h >>conftest.$ac_ext 3140cat >>conftest.$ac_ext <<_ACEOF 3141/* end confdefs.h. */ 3142#include <termio.h> 3143Autoconf TCGETA 3144_ACEOF 3145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3146 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3147 ac_cv_prog_gcc_traditional=yes 3148fi 3149rm -f conftest* 3150 3151 fi 3152fi 3153echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3154echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3155 if test $ac_cv_prog_gcc_traditional = yes; then 3156 CC="$CC -traditional" 3157 fi 3158fi 3159 3160# Find a good install program. We prefer a C program (faster), 3161# so one script is as good as another. But avoid the broken or 3162# incompatible versions: 3163# SysV /etc/install, /usr/sbin/install 3164# SunOS /usr/etc/install 3165# IRIX /sbin/install 3166# AIX /bin/install 3167# AmigaOS /C/install, which installs bootblocks on floppy discs 3168# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3169# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3170# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3171# OS/2's system install, which has a completely different semantic 3172# ./install, which can be erroneously created by make from ./install.sh. 3173echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3174echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3175if test -z "$INSTALL"; then 3176if test "${ac_cv_path_install+set}" = set; then 3177 echo $ECHO_N "(cached) $ECHO_C" >&6 3178else 3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 # Account for people who put trailing slashes in PATH elements. 3185case $as_dir/ in 3186 ./ | .// | /cC/* | \ 3187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3189 /usr/ucb/* ) ;; 3190 *) 3191 # OSF1 and SCO ODT 3.0 have their own names for install. 3192 # Don't use installbsd from OSF since it installs stuff as root 3193 # by default. 3194 for ac_prog in ginstall scoinst install; do 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3197 if test $ac_prog = install && 3198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3199 # AIX install. It has an incompatible calling convention. 3200 : 3201 elif test $ac_prog = install && 3202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3203 # program-specific install script used by HP pwplus--don't use. 3204 : 3205 else 3206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3207 break 3 3208 fi 3209 fi 3210 done 3211 done 3212 ;; 3213esac 3214done 3215 3216 3217fi 3218 if test "${ac_cv_path_install+set}" = set; then 3219 INSTALL=$ac_cv_path_install 3220 else 3221 # As a last resort, use the slow shell script. We don't cache a 3222 # path for INSTALL within a source directory, because that will 3223 # break other packages using the cache if that directory is 3224 # removed, or if the path is relative. 3225 INSTALL=$ac_install_sh 3226 fi 3227fi 3228echo "$as_me:$LINENO: result: $INSTALL" >&5 3229echo "${ECHO_T}$INSTALL" >&6 3230 3231# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3232# It thinks the first close brace ends the variable substitution. 3233test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3234 3235test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3236 3237test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3238 3239# Extract the first word of "ar", so it can be a program name with args. 3240set dummy ar; ac_word=$2 3241echo "$as_me:$LINENO: checking for $ac_word" >&5 3242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3243if test "${ac_cv_prog_AR+set}" = set; then 3244 echo $ECHO_N "(cached) $ECHO_C" >&6 3245else 3246 if test -n "$AR"; then 3247 ac_cv_prog_AR="$AR" # Let the user override the test. 3248else 3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3250for as_dir in $PATH 3251do 3252 IFS=$as_save_IFS 3253 test -z "$as_dir" && as_dir=. 3254 for ac_exec_ext in '' $ac_executable_extensions; do 3255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3256 ac_cv_prog_AR="" 3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261done 3262 3263 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 3264fi 3265fi 3266AR=$ac_cv_prog_AR 3267if test -n "$AR"; then 3268 echo "$as_me:$LINENO: result: $AR" >&5 3269echo "${ECHO_T}$AR" >&6 3270else 3271 echo "$as_me:$LINENO: result: no" >&5 3272echo "${ECHO_T}no" >&6 3273fi 3274 3275test -n "$ARFLAGS" || ARFLAGS="cr" 3276if test -n "$ac_tool_prefix"; then 3277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3278set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3279echo "$as_me:$LINENO: checking for $ac_word" >&5 3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3281if test "${ac_cv_prog_RANLIB+set}" = set; then 3282 echo $ECHO_N "(cached) $ECHO_C" >&6 3283else 3284 if test -n "$RANLIB"; then 3285 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3286else 3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3288for as_dir in $PATH 3289do 3290 IFS=$as_save_IFS 3291 test -z "$as_dir" && as_dir=. 3292 for ac_exec_ext in '' $ac_executable_extensions; do 3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3296 break 2 3297 fi 3298done 3299done 3300 3301fi 3302fi 3303RANLIB=$ac_cv_prog_RANLIB 3304if test -n "$RANLIB"; then 3305 echo "$as_me:$LINENO: result: $RANLIB" >&5 3306echo "${ECHO_T}$RANLIB" >&6 3307else 3308 echo "$as_me:$LINENO: result: no" >&5 3309echo "${ECHO_T}no" >&6 3310fi 3311 3312fi 3313if test -z "$ac_cv_prog_RANLIB"; then 3314 ac_ct_RANLIB=$RANLIB 3315 # Extract the first word of "ranlib", so it can be a program name with args. 3316set dummy ranlib; ac_word=$2 3317echo "$as_me:$LINENO: checking for $ac_word" >&5 3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3319if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3320 echo $ECHO_N "(cached) $ECHO_C" >&6 3321else 3322 if test -n "$ac_ct_RANLIB"; then 3323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3324else 3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3326for as_dir in $PATH 3327do 3328 IFS=$as_save_IFS 3329 test -z "$as_dir" && as_dir=. 3330 for ac_exec_ext in '' $ac_executable_extensions; do 3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3332 ac_cv_prog_ac_ct_RANLIB="ranlib" 3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3334 break 2 3335 fi 3336done 3337done 3338 3339 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3340fi 3341fi 3342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3343if test -n "$ac_ct_RANLIB"; then 3344 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3345echo "${ECHO_T}$ac_ct_RANLIB" >&6 3346else 3347 echo "$as_me:$LINENO: result: no" >&5 3348echo "${ECHO_T}no" >&6 3349fi 3350 3351 RANLIB=$ac_ct_RANLIB 3352else 3353 RANLIB="$ac_cv_prog_RANLIB" 3354fi 3355 3356 3357MAKE_SHELL=/bin/sh 3358 3359 3360echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3361echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3362if test "${ac_cv_c_const+set}" = set; then 3363 echo $ECHO_N "(cached) $ECHO_C" >&6 3364else 3365 cat >conftest.$ac_ext <<_ACEOF 3366/* confdefs.h. */ 3367_ACEOF 3368cat confdefs.h >>conftest.$ac_ext 3369cat >>conftest.$ac_ext <<_ACEOF 3370/* end confdefs.h. */ 3371 3372int 3373main () 3374{ 3375/* FIXME: Include the comments suggested by Paul. */ 3376#ifndef __cplusplus 3377 /* Ultrix mips cc rejects this. */ 3378 typedef int charset[2]; 3379 const charset x; 3380 /* SunOS 4.1.1 cc rejects this. */ 3381 char const *const *ccp; 3382 char **p; 3383 /* NEC SVR4.0.2 mips cc rejects this. */ 3384 struct point {int x, y;}; 3385 static struct point const zero = {0,0}; 3386 /* AIX XL C 1.02.0.0 rejects this. 3387 It does not let you subtract one const X* pointer from another in 3388 an arm of an if-expression whose if-part is not a constant 3389 expression */ 3390 const char *g = "string"; 3391 ccp = &g + (g ? g-g : 0); 3392 /* HPUX 7.0 cc rejects these. */ 3393 ++ccp; 3394 p = (char**) ccp; 3395 ccp = (char const *const *) p; 3396 { /* SCO 3.2v4 cc rejects this. */ 3397 char *t; 3398 char const *s = 0 ? (char *) 0 : (char const *) 0; 3399 3400 *t++ = 0; 3401 } 3402 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3403 int x[] = {25, 17}; 3404 const int *foo = &x[0]; 3405 ++foo; 3406 } 3407 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3408 typedef const int *iptr; 3409 iptr p = 0; 3410 ++p; 3411 } 3412 { /* AIX XL C 1.02.0.0 rejects this saying 3413 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3414 struct s { int j; const int *ap[3]; }; 3415 struct s *b; b->j = 5; 3416 } 3417 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3418 const int foo = 10; 3419 } 3420#endif 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426rm -f conftest.$ac_objext 3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3428 (eval $ac_compile) 2>conftest.er1 3429 ac_status=$? 3430 grep -v '^ *+' conftest.er1 >conftest.err 3431 rm -f conftest.er1 3432 cat conftest.err >&5 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } && 3435 { ac_try='test -z "$ac_c_werror_flag" 3436 || test ! -s conftest.err' 3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3438 (eval $ac_try) 2>&5 3439 ac_status=$? 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3441 (exit $ac_status); }; } && 3442 { ac_try='test -s conftest.$ac_objext' 3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3444 (eval $ac_try) 2>&5 3445 ac_status=$? 3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3447 (exit $ac_status); }; }; then 3448 ac_cv_c_const=yes 3449else 3450 echo "$as_me: failed program was:" >&5 3451sed 's/^/| /' conftest.$ac_ext >&5 3452 3453ac_cv_c_const=no 3454fi 3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3456fi 3457echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3458echo "${ECHO_T}$ac_cv_c_const" >&6 3459if test $ac_cv_c_const = no; then 3460 3461cat >>confdefs.h <<\_ACEOF 3462#define const 3463_ACEOF 3464 3465fi 3466 3467echo "$as_me:$LINENO: checking for function prototypes" >&5 3468echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3469if test "$ac_cv_prog_cc_stdc" != no; then 3470 echo "$as_me:$LINENO: result: yes" >&5 3471echo "${ECHO_T}yes" >&6 3472 3473cat >>confdefs.h <<\_ACEOF 3474#define PROTOTYPES 1 3475_ACEOF 3476 3477 3478cat >>confdefs.h <<\_ACEOF 3479#define __PROTOTYPES 1 3480_ACEOF 3481 3482else 3483 echo "$as_me:$LINENO: result: no" >&5 3484echo "${ECHO_T}no" >&6 3485fi 3486 3487 3488echo "$as_me:$LINENO: checking whether char is unsigned" >&5 3489echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 3490if test "${ac_cv_c_char_unsigned+set}" = set; then 3491 echo $ECHO_N "(cached) $ECHO_C" >&6 3492else 3493 cat >conftest.$ac_ext <<_ACEOF 3494/* confdefs.h. */ 3495_ACEOF 3496cat confdefs.h >>conftest.$ac_ext 3497cat >>conftest.$ac_ext <<_ACEOF 3498/* end confdefs.h. */ 3499$ac_includes_default 3500int 3501main () 3502{ 3503static int test_array [1 - 2 * !(((char) -1) < 0)]; 3504test_array [0] = 0 3505 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510rm -f conftest.$ac_objext 3511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3512 (eval $ac_compile) 2>conftest.er1 3513 ac_status=$? 3514 grep -v '^ *+' conftest.er1 >conftest.err 3515 rm -f conftest.er1 3516 cat conftest.err >&5 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3518 (exit $ac_status); } && 3519 { ac_try='test -z "$ac_c_werror_flag" 3520 || test ! -s conftest.err' 3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3522 (eval $ac_try) 2>&5 3523 ac_status=$? 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3525 (exit $ac_status); }; } && 3526 { ac_try='test -s conftest.$ac_objext' 3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3528 (eval $ac_try) 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); }; }; then 3532 ac_cv_c_char_unsigned=no 3533else 3534 echo "$as_me: failed program was:" >&5 3535sed 's/^/| /' conftest.$ac_ext >&5 3536 3537ac_cv_c_char_unsigned=yes 3538fi 3539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3540fi 3541echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 3542echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 3543if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 3544 cat >>confdefs.h <<\_ACEOF 3545#define __CHAR_UNSIGNED__ 1 3546_ACEOF 3547 3548fi 3549 3550 3551echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3552echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 3553if test "${ac_cv_type_signal+set}" = set; then 3554 echo $ECHO_N "(cached) $ECHO_C" >&6 3555else 3556 cat >conftest.$ac_ext <<_ACEOF 3557/* confdefs.h. */ 3558_ACEOF 3559cat confdefs.h >>conftest.$ac_ext 3560cat >>conftest.$ac_ext <<_ACEOF 3561/* end confdefs.h. */ 3562#include <sys/types.h> 3563#include <signal.h> 3564#ifdef signal 3565# undef signal 3566#endif 3567#ifdef __cplusplus 3568extern "C" void (*signal (int, void (*)(int)))(int); 3569#else 3570void (*signal ()) (); 3571#endif 3572 3573int 3574main () 3575{ 3576int i; 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581rm -f conftest.$ac_objext 3582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3583 (eval $ac_compile) 2>conftest.er1 3584 ac_status=$? 3585 grep -v '^ *+' conftest.er1 >conftest.err 3586 rm -f conftest.er1 3587 cat conftest.err >&5 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); } && 3590 { ac_try='test -z "$ac_c_werror_flag" 3591 || test ! -s conftest.err' 3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3593 (eval $ac_try) 2>&5 3594 ac_status=$? 3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 (exit $ac_status); }; } && 3597 { ac_try='test -s conftest.$ac_objext' 3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3599 (eval $ac_try) 2>&5 3600 ac_status=$? 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); }; }; then 3603 ac_cv_type_signal=void 3604else 3605 echo "$as_me: failed program was:" >&5 3606sed 's/^/| /' conftest.$ac_ext >&5 3607 3608ac_cv_type_signal=int 3609fi 3610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 3613echo "${ECHO_T}$ac_cv_type_signal" >&6 3614 3615cat >>confdefs.h <<_ACEOF 3616#define RETSIGTYPE $ac_cv_type_signal 3617_ACEOF 3618 3619 3620 3621echo "$as_me:$LINENO: checking for size_t" >&5 3622echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3623if test "${ac_cv_type_size_t+set}" = set; then 3624 echo $ECHO_N "(cached) $ECHO_C" >&6 3625else 3626 cat >conftest.$ac_ext <<_ACEOF 3627/* confdefs.h. */ 3628_ACEOF 3629cat confdefs.h >>conftest.$ac_ext 3630cat >>conftest.$ac_ext <<_ACEOF 3631/* end confdefs.h. */ 3632$ac_includes_default 3633int 3634main () 3635{ 3636if ((size_t *) 0) 3637 return 0; 3638if (sizeof (size_t)) 3639 return 0; 3640 ; 3641 return 0; 3642} 3643_ACEOF 3644rm -f conftest.$ac_objext 3645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3646 (eval $ac_compile) 2>conftest.er1 3647 ac_status=$? 3648 grep -v '^ *+' conftest.er1 >conftest.err 3649 rm -f conftest.er1 3650 cat conftest.err >&5 3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); } && 3653 { ac_try='test -z "$ac_c_werror_flag" 3654 || test ! -s conftest.err' 3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3656 (eval $ac_try) 2>&5 3657 ac_status=$? 3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3659 (exit $ac_status); }; } && 3660 { ac_try='test -s conftest.$ac_objext' 3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3662 (eval $ac_try) 2>&5 3663 ac_status=$? 3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3665 (exit $ac_status); }; }; then 3666 ac_cv_type_size_t=yes 3667else 3668 echo "$as_me: failed program was:" >&5 3669sed 's/^/| /' conftest.$ac_ext >&5 3670 3671ac_cv_type_size_t=no 3672fi 3673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3674fi 3675echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3676echo "${ECHO_T}$ac_cv_type_size_t" >&6 3677if test $ac_cv_type_size_t = yes; then 3678 : 3679else 3680 3681cat >>confdefs.h <<_ACEOF 3682#define size_t unsigned 3683_ACEOF 3684 3685fi 3686 3687echo "$as_me:$LINENO: checking for ssize_t" >&5 3688echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 3689if test "${ac_cv_type_ssize_t+set}" = set; then 3690 echo $ECHO_N "(cached) $ECHO_C" >&6 3691else 3692 cat >conftest.$ac_ext <<_ACEOF 3693/* confdefs.h. */ 3694_ACEOF 3695cat confdefs.h >>conftest.$ac_ext 3696cat >>conftest.$ac_ext <<_ACEOF 3697/* end confdefs.h. */ 3698$ac_includes_default 3699int 3700main () 3701{ 3702if ((ssize_t *) 0) 3703 return 0; 3704if (sizeof (ssize_t)) 3705 return 0; 3706 ; 3707 return 0; 3708} 3709_ACEOF 3710rm -f conftest.$ac_objext 3711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3712 (eval $ac_compile) 2>conftest.er1 3713 ac_status=$? 3714 grep -v '^ *+' conftest.er1 >conftest.err 3715 rm -f conftest.er1 3716 cat conftest.err >&5 3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3718 (exit $ac_status); } && 3719 { ac_try='test -z "$ac_c_werror_flag" 3720 || test ! -s conftest.err' 3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3722 (eval $ac_try) 2>&5 3723 ac_status=$? 3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3725 (exit $ac_status); }; } && 3726 { ac_try='test -s conftest.$ac_objext' 3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3728 (eval $ac_try) 2>&5 3729 ac_status=$? 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3731 (exit $ac_status); }; }; then 3732 ac_cv_type_ssize_t=yes 3733else 3734 echo "$as_me: failed program was:" >&5 3735sed 's/^/| /' conftest.$ac_ext >&5 3736 3737ac_cv_type_ssize_t=no 3738fi 3739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3740fi 3741echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 3742echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 3743if test $ac_cv_type_ssize_t = yes; then 3744 : 3745else 3746 3747cat >>confdefs.h <<_ACEOF 3748#define ssize_t int 3749_ACEOF 3750 3751fi 3752 3753 3754echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3755echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3756if test "${ac_cv_header_stdc+set}" = set; then 3757 echo $ECHO_N "(cached) $ECHO_C" >&6 3758else 3759 cat >conftest.$ac_ext <<_ACEOF 3760/* confdefs.h. */ 3761_ACEOF 3762cat confdefs.h >>conftest.$ac_ext 3763cat >>conftest.$ac_ext <<_ACEOF 3764/* end confdefs.h. */ 3765#include <stdlib.h> 3766#include <stdarg.h> 3767#include <string.h> 3768#include <float.h> 3769 3770int 3771main () 3772{ 3773 3774 ; 3775 return 0; 3776} 3777_ACEOF 3778rm -f conftest.$ac_objext 3779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3780 (eval $ac_compile) 2>conftest.er1 3781 ac_status=$? 3782 grep -v '^ *+' conftest.er1 >conftest.err 3783 rm -f conftest.er1 3784 cat conftest.err >&5 3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3786 (exit $ac_status); } && 3787 { ac_try='test -z "$ac_c_werror_flag" 3788 || test ! -s conftest.err' 3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3790 (eval $ac_try) 2>&5 3791 ac_status=$? 3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3793 (exit $ac_status); }; } && 3794 { ac_try='test -s conftest.$ac_objext' 3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3796 (eval $ac_try) 2>&5 3797 ac_status=$? 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); }; }; then 3800 ac_cv_header_stdc=yes 3801else 3802 echo "$as_me: failed program was:" >&5 3803sed 's/^/| /' conftest.$ac_ext >&5 3804 3805ac_cv_header_stdc=no 3806fi 3807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3808 3809if test $ac_cv_header_stdc = yes; then 3810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3811 cat >conftest.$ac_ext <<_ACEOF 3812/* confdefs.h. */ 3813_ACEOF 3814cat confdefs.h >>conftest.$ac_ext 3815cat >>conftest.$ac_ext <<_ACEOF 3816/* end confdefs.h. */ 3817#include <string.h> 3818 3819_ACEOF 3820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3821 $EGREP "memchr" >/dev/null 2>&1; then 3822 : 3823else 3824 ac_cv_header_stdc=no 3825fi 3826rm -f conftest* 3827 3828fi 3829 3830if test $ac_cv_header_stdc = yes; then 3831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3832 cat >conftest.$ac_ext <<_ACEOF 3833/* confdefs.h. */ 3834_ACEOF 3835cat confdefs.h >>conftest.$ac_ext 3836cat >>conftest.$ac_ext <<_ACEOF 3837/* end confdefs.h. */ 3838#include <stdlib.h> 3839 3840_ACEOF 3841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3842 $EGREP "free" >/dev/null 2>&1; then 3843 : 3844else 3845 ac_cv_header_stdc=no 3846fi 3847rm -f conftest* 3848 3849fi 3850 3851if test $ac_cv_header_stdc = yes; then 3852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3853 if test "$cross_compiling" = yes; then 3854 : 3855else 3856 cat >conftest.$ac_ext <<_ACEOF 3857/* confdefs.h. */ 3858_ACEOF 3859cat confdefs.h >>conftest.$ac_ext 3860cat >>conftest.$ac_ext <<_ACEOF 3861/* end confdefs.h. */ 3862#include <ctype.h> 3863#if ((' ' & 0x0FF) == 0x020) 3864# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3865# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3866#else 3867# define ISLOWER(c) \ 3868 (('a' <= (c) && (c) <= 'i') \ 3869 || ('j' <= (c) && (c) <= 'r') \ 3870 || ('s' <= (c) && (c) <= 'z')) 3871# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3872#endif 3873 3874#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3875int 3876main () 3877{ 3878 int i; 3879 for (i = 0; i < 256; i++) 3880 if (XOR (islower (i), ISLOWER (i)) 3881 || toupper (i) != TOUPPER (i)) 3882 exit(2); 3883 exit (0); 3884} 3885_ACEOF 3886rm -f conftest$ac_exeext 3887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3888 (eval $ac_link) 2>&5 3889 ac_status=$? 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3893 (eval $ac_try) 2>&5 3894 ac_status=$? 3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3896 (exit $ac_status); }; }; then 3897 : 3898else 3899 echo "$as_me: program exited with status $ac_status" >&5 3900echo "$as_me: failed program was:" >&5 3901sed 's/^/| /' conftest.$ac_ext >&5 3902 3903( exit $ac_status ) 3904ac_cv_header_stdc=no 3905fi 3906rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3907fi 3908fi 3909fi 3910echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3911echo "${ECHO_T}$ac_cv_header_stdc" >&6 3912if test $ac_cv_header_stdc = yes; then 3913 3914cat >>confdefs.h <<\_ACEOF 3915#define STDC_HEADERS 1 3916_ACEOF 3917 3918fi 3919 3920 3921echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 3922echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 3923if test "${ac_cv_header_stat_broken+set}" = set; then 3924 echo $ECHO_N "(cached) $ECHO_C" >&6 3925else 3926 cat >conftest.$ac_ext <<_ACEOF 3927/* confdefs.h. */ 3928_ACEOF 3929cat confdefs.h >>conftest.$ac_ext 3930cat >>conftest.$ac_ext <<_ACEOF 3931/* end confdefs.h. */ 3932#include <sys/types.h> 3933#include <sys/stat.h> 3934 3935#if defined(S_ISBLK) && defined(S_IFDIR) 3936# if S_ISBLK (S_IFDIR) 3937You lose. 3938# endif 3939#endif 3940 3941#if defined(S_ISBLK) && defined(S_IFCHR) 3942# if S_ISBLK (S_IFCHR) 3943You lose. 3944# endif 3945#endif 3946 3947#if defined(S_ISLNK) && defined(S_IFREG) 3948# if S_ISLNK (S_IFREG) 3949You lose. 3950# endif 3951#endif 3952 3953#if defined(S_ISSOCK) && defined(S_IFREG) 3954# if S_ISSOCK (S_IFREG) 3955You lose. 3956# endif 3957#endif 3958 3959_ACEOF 3960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3961 $EGREP "You lose" >/dev/null 2>&1; then 3962 ac_cv_header_stat_broken=yes 3963else 3964 ac_cv_header_stat_broken=no 3965fi 3966rm -f conftest* 3967 3968fi 3969echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 3970echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 3971if test $ac_cv_header_stat_broken = yes; then 3972 3973cat >>confdefs.h <<\_ACEOF 3974#define STAT_MACROS_BROKEN 1 3975_ACEOF 3976 3977fi 3978 3979 3980 3981 3982 3983 3984ac_header_dirent=no 3985for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3986 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3987echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3988echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3989if eval "test \"\${$as_ac_Header+set}\" = set"; then 3990 echo $ECHO_N "(cached) $ECHO_C" >&6 3991else 3992 cat >conftest.$ac_ext <<_ACEOF 3993/* confdefs.h. */ 3994_ACEOF 3995cat confdefs.h >>conftest.$ac_ext 3996cat >>conftest.$ac_ext <<_ACEOF 3997/* end confdefs.h. */ 3998#include <sys/types.h> 3999#include <$ac_hdr> 4000 4001int 4002main () 4003{ 4004if ((DIR *) 0) 4005return 0; 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010rm -f conftest.$ac_objext 4011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4012 (eval $ac_compile) 2>conftest.er1 4013 ac_status=$? 4014 grep -v '^ *+' conftest.er1 >conftest.err 4015 rm -f conftest.er1 4016 cat conftest.err >&5 4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 (exit $ac_status); } && 4019 { ac_try='test -z "$ac_c_werror_flag" 4020 || test ! -s conftest.err' 4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4022 (eval $ac_try) 2>&5 4023 ac_status=$? 4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 (exit $ac_status); }; } && 4026 { ac_try='test -s conftest.$ac_objext' 4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4028 (eval $ac_try) 2>&5 4029 ac_status=$? 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); }; }; then 4032 eval "$as_ac_Header=yes" 4033else 4034 echo "$as_me: failed program was:" >&5 4035sed 's/^/| /' conftest.$ac_ext >&5 4036 4037eval "$as_ac_Header=no" 4038fi 4039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4040fi 4041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4043if test `eval echo '${'$as_ac_Header'}'` = yes; then 4044 cat >>confdefs.h <<_ACEOF 4045#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4046_ACEOF 4047 4048ac_header_dirent=$ac_hdr; break 4049fi 4050 4051done 4052# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4053if test $ac_header_dirent = dirent.h; then 4054 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4055echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4056if test "${ac_cv_search_opendir+set}" = set; then 4057 echo $ECHO_N "(cached) $ECHO_C" >&6 4058else 4059 ac_func_search_save_LIBS=$LIBS 4060ac_cv_search_opendir=no 4061cat >conftest.$ac_ext <<_ACEOF 4062/* confdefs.h. */ 4063_ACEOF 4064cat confdefs.h >>conftest.$ac_ext 4065cat >>conftest.$ac_ext <<_ACEOF 4066/* end confdefs.h. */ 4067 4068/* Override any gcc2 internal prototype to avoid an error. */ 4069#ifdef __cplusplus 4070extern "C" 4071#endif 4072/* We use char because int might match the return type of a gcc2 4073 builtin and then its argument prototype would still apply. */ 4074char opendir (); 4075int 4076main () 4077{ 4078opendir (); 4079 ; 4080 return 0; 4081} 4082_ACEOF 4083rm -f conftest.$ac_objext conftest$ac_exeext 4084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4085 (eval $ac_link) 2>conftest.er1 4086 ac_status=$? 4087 grep -v '^ *+' conftest.er1 >conftest.err 4088 rm -f conftest.er1 4089 cat conftest.err >&5 4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4091 (exit $ac_status); } && 4092 { ac_try='test -z "$ac_c_werror_flag" 4093 || test ! -s conftest.err' 4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4095 (eval $ac_try) 2>&5 4096 ac_status=$? 4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 (exit $ac_status); }; } && 4099 { ac_try='test -s conftest$ac_exeext' 4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4101 (eval $ac_try) 2>&5 4102 ac_status=$? 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); }; }; then 4105 ac_cv_search_opendir="none required" 4106else 4107 echo "$as_me: failed program was:" >&5 4108sed 's/^/| /' conftest.$ac_ext >&5 4109 4110fi 4111rm -f conftest.err conftest.$ac_objext \ 4112 conftest$ac_exeext conftest.$ac_ext 4113if test "$ac_cv_search_opendir" = no; then 4114 for ac_lib in dir; do 4115 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4116 cat >conftest.$ac_ext <<_ACEOF 4117/* confdefs.h. */ 4118_ACEOF 4119cat confdefs.h >>conftest.$ac_ext 4120cat >>conftest.$ac_ext <<_ACEOF 4121/* end confdefs.h. */ 4122 4123/* Override any gcc2 internal prototype to avoid an error. */ 4124#ifdef __cplusplus 4125extern "C" 4126#endif 4127/* We use char because int might match the return type of a gcc2 4128 builtin and then its argument prototype would still apply. */ 4129char opendir (); 4130int 4131main () 4132{ 4133opendir (); 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138rm -f conftest.$ac_objext conftest$ac_exeext 4139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4140 (eval $ac_link) 2>conftest.er1 4141 ac_status=$? 4142 grep -v '^ *+' conftest.er1 >conftest.err 4143 rm -f conftest.er1 4144 cat conftest.err >&5 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); } && 4147 { ac_try='test -z "$ac_c_werror_flag" 4148 || test ! -s conftest.err' 4149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4150 (eval $ac_try) 2>&5 4151 ac_status=$? 4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4153 (exit $ac_status); }; } && 4154 { ac_try='test -s conftest$ac_exeext' 4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156 (eval $ac_try) 2>&5 4157 ac_status=$? 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); }; }; then 4160 ac_cv_search_opendir="-l$ac_lib" 4161break 4162else 4163 echo "$as_me: failed program was:" >&5 4164sed 's/^/| /' conftest.$ac_ext >&5 4165 4166fi 4167rm -f conftest.err conftest.$ac_objext \ 4168 conftest$ac_exeext conftest.$ac_ext 4169 done 4170fi 4171LIBS=$ac_func_search_save_LIBS 4172fi 4173echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4174echo "${ECHO_T}$ac_cv_search_opendir" >&6 4175if test "$ac_cv_search_opendir" != no; then 4176 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4177 4178fi 4179 4180else 4181 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4182echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4183if test "${ac_cv_search_opendir+set}" = set; then 4184 echo $ECHO_N "(cached) $ECHO_C" >&6 4185else 4186 ac_func_search_save_LIBS=$LIBS 4187ac_cv_search_opendir=no 4188cat >conftest.$ac_ext <<_ACEOF 4189/* confdefs.h. */ 4190_ACEOF 4191cat confdefs.h >>conftest.$ac_ext 4192cat >>conftest.$ac_ext <<_ACEOF 4193/* end confdefs.h. */ 4194 4195/* Override any gcc2 internal prototype to avoid an error. */ 4196#ifdef __cplusplus 4197extern "C" 4198#endif 4199/* We use char because int might match the return type of a gcc2 4200 builtin and then its argument prototype would still apply. */ 4201char opendir (); 4202int 4203main () 4204{ 4205opendir (); 4206 ; 4207 return 0; 4208} 4209_ACEOF 4210rm -f conftest.$ac_objext conftest$ac_exeext 4211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4212 (eval $ac_link) 2>conftest.er1 4213 ac_status=$? 4214 grep -v '^ *+' conftest.er1 >conftest.err 4215 rm -f conftest.er1 4216 cat conftest.err >&5 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4218 (exit $ac_status); } && 4219 { ac_try='test -z "$ac_c_werror_flag" 4220 || test ! -s conftest.err' 4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4222 (eval $ac_try) 2>&5 4223 ac_status=$? 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4225 (exit $ac_status); }; } && 4226 { ac_try='test -s conftest$ac_exeext' 4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4228 (eval $ac_try) 2>&5 4229 ac_status=$? 4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4231 (exit $ac_status); }; }; then 4232 ac_cv_search_opendir="none required" 4233else 4234 echo "$as_me: failed program was:" >&5 4235sed 's/^/| /' conftest.$ac_ext >&5 4236 4237fi 4238rm -f conftest.err conftest.$ac_objext \ 4239 conftest$ac_exeext conftest.$ac_ext 4240if test "$ac_cv_search_opendir" = no; then 4241 for ac_lib in x; do 4242 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4243 cat >conftest.$ac_ext <<_ACEOF 4244/* confdefs.h. */ 4245_ACEOF 4246cat confdefs.h >>conftest.$ac_ext 4247cat >>conftest.$ac_ext <<_ACEOF 4248/* end confdefs.h. */ 4249 4250/* Override any gcc2 internal prototype to avoid an error. */ 4251#ifdef __cplusplus 4252extern "C" 4253#endif 4254/* We use char because int might match the return type of a gcc2 4255 builtin and then its argument prototype would still apply. */ 4256char opendir (); 4257int 4258main () 4259{ 4260opendir (); 4261 ; 4262 return 0; 4263} 4264_ACEOF 4265rm -f conftest.$ac_objext conftest$ac_exeext 4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4267 (eval $ac_link) 2>conftest.er1 4268 ac_status=$? 4269 grep -v '^ *+' conftest.er1 >conftest.err 4270 rm -f conftest.er1 4271 cat conftest.err >&5 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && 4274 { ac_try='test -z "$ac_c_werror_flag" 4275 || test ! -s conftest.err' 4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4277 (eval $ac_try) 2>&5 4278 ac_status=$? 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); }; } && 4281 { ac_try='test -s conftest$ac_exeext' 4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4283 (eval $ac_try) 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); }; }; then 4287 ac_cv_search_opendir="-l$ac_lib" 4288break 4289else 4290 echo "$as_me: failed program was:" >&5 4291sed 's/^/| /' conftest.$ac_ext >&5 4292 4293fi 4294rm -f conftest.err conftest.$ac_objext \ 4295 conftest$ac_exeext conftest.$ac_ext 4296 done 4297fi 4298LIBS=$ac_func_search_save_LIBS 4299fi 4300echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4301echo "${ECHO_T}$ac_cv_search_opendir" >&6 4302if test "$ac_cv_search_opendir" != no; then 4303 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4304 4305fi 4306 4307fi 4308 4309 4310 4311 4312 4313for ac_func in fcntl kill lstat 4314do 4315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4316echo "$as_me:$LINENO: checking for $ac_func" >&5 4317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4318if eval "test \"\${$as_ac_var+set}\" = set"; then 4319 echo $ECHO_N "(cached) $ECHO_C" >&6 4320else 4321 cat >conftest.$ac_ext <<_ACEOF 4322/* confdefs.h. */ 4323_ACEOF 4324cat confdefs.h >>conftest.$ac_ext 4325cat >>conftest.$ac_ext <<_ACEOF 4326/* end confdefs.h. */ 4327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4328 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4329#define $ac_func innocuous_$ac_func 4330 4331/* System header to define __stub macros and hopefully few prototypes, 4332 which can conflict with char $ac_func (); below. 4333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4334 <limits.h> exists even on freestanding compilers. */ 4335 4336#ifdef __STDC__ 4337# include <limits.h> 4338#else 4339# include <assert.h> 4340#endif 4341 4342#undef $ac_func 4343 4344/* Override any gcc2 internal prototype to avoid an error. */ 4345#ifdef __cplusplus 4346extern "C" 4347{ 4348#endif 4349/* We use char because int might match the return type of a gcc2 4350 builtin and then its argument prototype would still apply. */ 4351char $ac_func (); 4352/* The GNU C library defines this for functions which it implements 4353 to always fail with ENOSYS. Some functions are actually named 4354 something starting with __ and the normal name is an alias. */ 4355#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4356choke me 4357#else 4358char (*f) () = $ac_func; 4359#endif 4360#ifdef __cplusplus 4361} 4362#endif 4363 4364int 4365main () 4366{ 4367return f != $ac_func; 4368 ; 4369 return 0; 4370} 4371_ACEOF 4372rm -f conftest.$ac_objext conftest$ac_exeext 4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4374 (eval $ac_link) 2>conftest.er1 4375 ac_status=$? 4376 grep -v '^ *+' conftest.er1 >conftest.err 4377 rm -f conftest.er1 4378 cat conftest.err >&5 4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4380 (exit $ac_status); } && 4381 { ac_try='test -z "$ac_c_werror_flag" 4382 || test ! -s conftest.err' 4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4384 (eval $ac_try) 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); }; } && 4388 { ac_try='test -s conftest$ac_exeext' 4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4390 (eval $ac_try) 2>&5 4391 ac_status=$? 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); }; }; then 4394 eval "$as_ac_var=yes" 4395else 4396 echo "$as_me: failed program was:" >&5 4397sed 's/^/| /' conftest.$ac_ext >&5 4398 4399eval "$as_ac_var=no" 4400fi 4401rm -f conftest.err conftest.$ac_objext \ 4402 conftest$ac_exeext conftest.$ac_ext 4403fi 4404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4405echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4406if test `eval echo '${'$as_ac_var'}'` = yes; then 4407 cat >>confdefs.h <<_ACEOF 4408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4409_ACEOF 4410 4411fi 4412done 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423for ac_func in memmove putenv select setenv setlocale \ 4424 strcasecmp strpbrk tcgetattr vsnprintf 4425do 4426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4427echo "$as_me:$LINENO: checking for $ac_func" >&5 4428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4429if eval "test \"\${$as_ac_var+set}\" = set"; then 4430 echo $ECHO_N "(cached) $ECHO_C" >&6 4431else 4432 cat >conftest.$ac_ext <<_ACEOF 4433/* confdefs.h. */ 4434_ACEOF 4435cat confdefs.h >>conftest.$ac_ext 4436cat >>conftest.$ac_ext <<_ACEOF 4437/* end confdefs.h. */ 4438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4439 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4440#define $ac_func innocuous_$ac_func 4441 4442/* System header to define __stub macros and hopefully few prototypes, 4443 which can conflict with char $ac_func (); below. 4444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4445 <limits.h> exists even on freestanding compilers. */ 4446 4447#ifdef __STDC__ 4448# include <limits.h> 4449#else 4450# include <assert.h> 4451#endif 4452 4453#undef $ac_func 4454 4455/* Override any gcc2 internal prototype to avoid an error. */ 4456#ifdef __cplusplus 4457extern "C" 4458{ 4459#endif 4460/* We use char because int might match the return type of a gcc2 4461 builtin and then its argument prototype would still apply. */ 4462char $ac_func (); 4463/* The GNU C library defines this for functions which it implements 4464 to always fail with ENOSYS. Some functions are actually named 4465 something starting with __ and the normal name is an alias. */ 4466#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4467choke me 4468#else 4469char (*f) () = $ac_func; 4470#endif 4471#ifdef __cplusplus 4472} 4473#endif 4474 4475int 4476main () 4477{ 4478return f != $ac_func; 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483rm -f conftest.$ac_objext conftest$ac_exeext 4484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4485 (eval $ac_link) 2>conftest.er1 4486 ac_status=$? 4487 grep -v '^ *+' conftest.er1 >conftest.err 4488 rm -f conftest.er1 4489 cat conftest.err >&5 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); } && 4492 { ac_try='test -z "$ac_c_werror_flag" 4493 || test ! -s conftest.err' 4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4495 (eval $ac_try) 2>&5 4496 ac_status=$? 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; } && 4499 { ac_try='test -s conftest$ac_exeext' 4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4501 (eval $ac_try) 2>&5 4502 ac_status=$? 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); }; }; then 4505 eval "$as_ac_var=yes" 4506else 4507 echo "$as_me: failed program was:" >&5 4508sed 's/^/| /' conftest.$ac_ext >&5 4509 4510eval "$as_ac_var=no" 4511fi 4512rm -f conftest.err conftest.$ac_objext \ 4513 conftest$ac_exeext conftest.$ac_ext 4514fi 4515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4517if test `eval echo '${'$as_ac_var'}'` = yes; then 4518 cat >>confdefs.h <<_ACEOF 4519#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4520_ACEOF 4521 4522fi 4523done 4524 4525 4526 4527for ac_func in isascii isxdigit 4528do 4529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4530echo "$as_me:$LINENO: checking for $ac_func" >&5 4531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4532if eval "test \"\${$as_ac_var+set}\" = set"; then 4533 echo $ECHO_N "(cached) $ECHO_C" >&6 4534else 4535 cat >conftest.$ac_ext <<_ACEOF 4536/* confdefs.h. */ 4537_ACEOF 4538cat confdefs.h >>conftest.$ac_ext 4539cat >>conftest.$ac_ext <<_ACEOF 4540/* end confdefs.h. */ 4541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4542 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4543#define $ac_func innocuous_$ac_func 4544 4545/* System header to define __stub macros and hopefully few prototypes, 4546 which can conflict with char $ac_func (); below. 4547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4548 <limits.h> exists even on freestanding compilers. */ 4549 4550#ifdef __STDC__ 4551# include <limits.h> 4552#else 4553# include <assert.h> 4554#endif 4555 4556#undef $ac_func 4557 4558/* Override any gcc2 internal prototype to avoid an error. */ 4559#ifdef __cplusplus 4560extern "C" 4561{ 4562#endif 4563/* We use char because int might match the return type of a gcc2 4564 builtin and then its argument prototype would still apply. */ 4565char $ac_func (); 4566/* The GNU C library defines this for functions which it implements 4567 to always fail with ENOSYS. Some functions are actually named 4568 something starting with __ and the normal name is an alias. */ 4569#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4570choke me 4571#else 4572char (*f) () = $ac_func; 4573#endif 4574#ifdef __cplusplus 4575} 4576#endif 4577 4578int 4579main () 4580{ 4581return f != $ac_func; 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586rm -f conftest.$ac_objext conftest$ac_exeext 4587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4588 (eval $ac_link) 2>conftest.er1 4589 ac_status=$? 4590 grep -v '^ *+' conftest.er1 >conftest.err 4591 rm -f conftest.er1 4592 cat conftest.err >&5 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); } && 4595 { ac_try='test -z "$ac_c_werror_flag" 4596 || test ! -s conftest.err' 4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; } && 4602 { ac_try='test -s conftest$ac_exeext' 4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4604 (eval $ac_try) 2>&5 4605 ac_status=$? 4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4607 (exit $ac_status); }; }; then 4608 eval "$as_ac_var=yes" 4609else 4610 echo "$as_me: failed program was:" >&5 4611sed 's/^/| /' conftest.$ac_ext >&5 4612 4613eval "$as_ac_var=no" 4614fi 4615rm -f conftest.err conftest.$ac_objext \ 4616 conftest$ac_exeext conftest.$ac_ext 4617fi 4618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4620if test `eval echo '${'$as_ac_var'}'` = yes; then 4621 cat >>confdefs.h <<_ACEOF 4622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4623_ACEOF 4624 4625fi 4626done 4627 4628 4629 4630 4631for ac_func in getpwent getpwnam getpwuid 4632do 4633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4634echo "$as_me:$LINENO: checking for $ac_func" >&5 4635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4636if eval "test \"\${$as_ac_var+set}\" = set"; then 4637 echo $ECHO_N "(cached) $ECHO_C" >&6 4638else 4639 cat >conftest.$ac_ext <<_ACEOF 4640/* confdefs.h. */ 4641_ACEOF 4642cat confdefs.h >>conftest.$ac_ext 4643cat >>conftest.$ac_ext <<_ACEOF 4644/* end confdefs.h. */ 4645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4646 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4647#define $ac_func innocuous_$ac_func 4648 4649/* System header to define __stub macros and hopefully few prototypes, 4650 which can conflict with char $ac_func (); below. 4651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4652 <limits.h> exists even on freestanding compilers. */ 4653 4654#ifdef __STDC__ 4655# include <limits.h> 4656#else 4657# include <assert.h> 4658#endif 4659 4660#undef $ac_func 4661 4662/* Override any gcc2 internal prototype to avoid an error. */ 4663#ifdef __cplusplus 4664extern "C" 4665{ 4666#endif 4667/* We use char because int might match the return type of a gcc2 4668 builtin and then its argument prototype would still apply. */ 4669char $ac_func (); 4670/* The GNU C library defines this for functions which it implements 4671 to always fail with ENOSYS. Some functions are actually named 4672 something starting with __ and the normal name is an alias. */ 4673#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4674choke me 4675#else 4676char (*f) () = $ac_func; 4677#endif 4678#ifdef __cplusplus 4679} 4680#endif 4681 4682int 4683main () 4684{ 4685return f != $ac_func; 4686 ; 4687 return 0; 4688} 4689_ACEOF 4690rm -f conftest.$ac_objext conftest$ac_exeext 4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4692 (eval $ac_link) 2>conftest.er1 4693 ac_status=$? 4694 grep -v '^ *+' conftest.er1 >conftest.err 4695 rm -f conftest.er1 4696 cat conftest.err >&5 4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698 (exit $ac_status); } && 4699 { ac_try='test -z "$ac_c_werror_flag" 4700 || test ! -s conftest.err' 4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4702 (eval $ac_try) 2>&5 4703 ac_status=$? 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); }; } && 4706 { ac_try='test -s conftest$ac_exeext' 4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4708 (eval $ac_try) 2>&5 4709 ac_status=$? 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); }; }; then 4712 eval "$as_ac_var=yes" 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717eval "$as_ac_var=no" 4718fi 4719rm -f conftest.err conftest.$ac_objext \ 4720 conftest$ac_exeext conftest.$ac_ext 4721fi 4722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4724if test `eval echo '${'$as_ac_var'}'` = yes; then 4725 cat >>confdefs.h <<_ACEOF 4726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4727_ACEOF 4728 4729fi 4730done 4731 4732 4733echo "$as_me:$LINENO: checking for working strcoll" >&5 4734echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 4735if test "${ac_cv_func_strcoll_works+set}" = set; then 4736 echo $ECHO_N "(cached) $ECHO_C" >&6 4737else 4738 if test "$cross_compiling" = yes; then 4739 ac_cv_func_strcoll_works=no 4740else 4741 cat >conftest.$ac_ext <<_ACEOF 4742/* confdefs.h. */ 4743_ACEOF 4744cat confdefs.h >>conftest.$ac_ext 4745cat >>conftest.$ac_ext <<_ACEOF 4746/* end confdefs.h. */ 4747$ac_includes_default 4748int 4749main () 4750{ 4751exit (strcoll ("abc", "def") >= 0 || 4752 strcoll ("ABC", "DEF") >= 0 || 4753 strcoll ("123", "456") >= 0) 4754 ; 4755 return 0; 4756} 4757_ACEOF 4758rm -f conftest$ac_exeext 4759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4760 (eval $ac_link) 2>&5 4761 ac_status=$? 4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4765 (eval $ac_try) 2>&5 4766 ac_status=$? 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); }; }; then 4769 ac_cv_func_strcoll_works=yes 4770else 4771 echo "$as_me: program exited with status $ac_status" >&5 4772echo "$as_me: failed program was:" >&5 4773sed 's/^/| /' conftest.$ac_ext >&5 4774 4775( exit $ac_status ) 4776ac_cv_func_strcoll_works=no 4777fi 4778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4779fi 4780fi 4781echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 4782echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 4783if test $ac_cv_func_strcoll_works = yes; then 4784 4785cat >>confdefs.h <<\_ACEOF 4786#define HAVE_STRCOLL 1 4787_ACEOF 4788 4789fi 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ 4807 limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h 4808do 4809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4810if eval "test \"\${$as_ac_Header+set}\" = set"; then 4811 echo "$as_me:$LINENO: checking for $ac_header" >&5 4812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4813if eval "test \"\${$as_ac_Header+set}\" = set"; then 4814 echo $ECHO_N "(cached) $ECHO_C" >&6 4815fi 4816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4818else 4819 # Is the header compilable? 4820echo "$as_me:$LINENO: checking $ac_header usability" >&5 4821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4822cat >conftest.$ac_ext <<_ACEOF 4823/* confdefs.h. */ 4824_ACEOF 4825cat confdefs.h >>conftest.$ac_ext 4826cat >>conftest.$ac_ext <<_ACEOF 4827/* end confdefs.h. */ 4828$ac_includes_default 4829#include <$ac_header> 4830_ACEOF 4831rm -f conftest.$ac_objext 4832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4833 (eval $ac_compile) 2>conftest.er1 4834 ac_status=$? 4835 grep -v '^ *+' conftest.er1 >conftest.err 4836 rm -f conftest.er1 4837 cat conftest.err >&5 4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4839 (exit $ac_status); } && 4840 { ac_try='test -z "$ac_c_werror_flag" 4841 || test ! -s conftest.err' 4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4843 (eval $ac_try) 2>&5 4844 ac_status=$? 4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4846 (exit $ac_status); }; } && 4847 { ac_try='test -s conftest.$ac_objext' 4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4849 (eval $ac_try) 2>&5 4850 ac_status=$? 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); }; }; then 4853 ac_header_compiler=yes 4854else 4855 echo "$as_me: failed program was:" >&5 4856sed 's/^/| /' conftest.$ac_ext >&5 4857 4858ac_header_compiler=no 4859fi 4860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4862echo "${ECHO_T}$ac_header_compiler" >&6 4863 4864# Is the header present? 4865echo "$as_me:$LINENO: checking $ac_header presence" >&5 4866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4867cat >conftest.$ac_ext <<_ACEOF 4868/* confdefs.h. */ 4869_ACEOF 4870cat confdefs.h >>conftest.$ac_ext 4871cat >>conftest.$ac_ext <<_ACEOF 4872/* end confdefs.h. */ 4873#include <$ac_header> 4874_ACEOF 4875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4877 ac_status=$? 4878 grep -v '^ *+' conftest.er1 >conftest.err 4879 rm -f conftest.er1 4880 cat conftest.err >&5 4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4882 (exit $ac_status); } >/dev/null; then 4883 if test -s conftest.err; then 4884 ac_cpp_err=$ac_c_preproc_warn_flag 4885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4886 else 4887 ac_cpp_err= 4888 fi 4889else 4890 ac_cpp_err=yes 4891fi 4892if test -z "$ac_cpp_err"; then 4893 ac_header_preproc=yes 4894else 4895 echo "$as_me: failed program was:" >&5 4896sed 's/^/| /' conftest.$ac_ext >&5 4897 4898 ac_header_preproc=no 4899fi 4900rm -f conftest.err conftest.$ac_ext 4901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4902echo "${ECHO_T}$ac_header_preproc" >&6 4903 4904# So? What about this header? 4905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4906 yes:no: ) 4907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4911 ac_header_preproc=yes 4912 ;; 4913 no:yes:* ) 4914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4926 ( 4927 cat <<\_ASBOX 4928## ----------------------------------- ## 4929## Report this to bug-readline@gnu.org ## 4930## ----------------------------------- ## 4931_ASBOX 4932 ) | 4933 sed "s/^/$as_me: WARNING: /" >&2 4934 ;; 4935esac 4936echo "$as_me:$LINENO: checking for $ac_header" >&5 4937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4938if eval "test \"\${$as_ac_Header+set}\" = set"; then 4939 echo $ECHO_N "(cached) $ECHO_C" >&6 4940else 4941 eval "$as_ac_Header=\$ac_header_preproc" 4942fi 4943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4945 4946fi 4947if test `eval echo '${'$as_ac_Header'}'` = yes; then 4948 cat >>confdefs.h <<_ACEOF 4949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4950_ACEOF 4951 4952fi 4953 4954done 4955 4956 4957 4958 4959 4960for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h 4961do 4962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4963if eval "test \"\${$as_ac_Header+set}\" = set"; then 4964 echo "$as_me:$LINENO: checking for $ac_header" >&5 4965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4966if eval "test \"\${$as_ac_Header+set}\" = set"; then 4967 echo $ECHO_N "(cached) $ECHO_C" >&6 4968fi 4969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4971else 4972 # Is the header compilable? 4973echo "$as_me:$LINENO: checking $ac_header usability" >&5 4974echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4975cat >conftest.$ac_ext <<_ACEOF 4976/* confdefs.h. */ 4977_ACEOF 4978cat confdefs.h >>conftest.$ac_ext 4979cat >>conftest.$ac_ext <<_ACEOF 4980/* end confdefs.h. */ 4981$ac_includes_default 4982#include <$ac_header> 4983_ACEOF 4984rm -f conftest.$ac_objext 4985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4986 (eval $ac_compile) 2>conftest.er1 4987 ac_status=$? 4988 grep -v '^ *+' conftest.er1 >conftest.err 4989 rm -f conftest.er1 4990 cat conftest.err >&5 4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4992 (exit $ac_status); } && 4993 { ac_try='test -z "$ac_c_werror_flag" 4994 || test ! -s conftest.err' 4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4996 (eval $ac_try) 2>&5 4997 ac_status=$? 4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 (exit $ac_status); }; } && 5000 { ac_try='test -s conftest.$ac_objext' 5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5002 (eval $ac_try) 2>&5 5003 ac_status=$? 5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5005 (exit $ac_status); }; }; then 5006 ac_header_compiler=yes 5007else 5008 echo "$as_me: failed program was:" >&5 5009sed 's/^/| /' conftest.$ac_ext >&5 5010 5011ac_header_compiler=no 5012fi 5013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5015echo "${ECHO_T}$ac_header_compiler" >&6 5016 5017# Is the header present? 5018echo "$as_me:$LINENO: checking $ac_header presence" >&5 5019echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5020cat >conftest.$ac_ext <<_ACEOF 5021/* confdefs.h. */ 5022_ACEOF 5023cat confdefs.h >>conftest.$ac_ext 5024cat >>conftest.$ac_ext <<_ACEOF 5025/* end confdefs.h. */ 5026#include <$ac_header> 5027_ACEOF 5028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5030 ac_status=$? 5031 grep -v '^ *+' conftest.er1 >conftest.err 5032 rm -f conftest.er1 5033 cat conftest.err >&5 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); } >/dev/null; then 5036 if test -s conftest.err; then 5037 ac_cpp_err=$ac_c_preproc_warn_flag 5038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5039 else 5040 ac_cpp_err= 5041 fi 5042else 5043 ac_cpp_err=yes 5044fi 5045if test -z "$ac_cpp_err"; then 5046 ac_header_preproc=yes 5047else 5048 echo "$as_me: failed program was:" >&5 5049sed 's/^/| /' conftest.$ac_ext >&5 5050 5051 ac_header_preproc=no 5052fi 5053rm -f conftest.err conftest.$ac_ext 5054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5055echo "${ECHO_T}$ac_header_preproc" >&6 5056 5057# So? What about this header? 5058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5059 yes:no: ) 5060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5061echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5063echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5064 ac_header_preproc=yes 5065 ;; 5066 no:yes:* ) 5067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5068echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5070echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5072echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5074echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5078echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5079 ( 5080 cat <<\_ASBOX 5081## ----------------------------------- ## 5082## Report this to bug-readline@gnu.org ## 5083## ----------------------------------- ## 5084_ASBOX 5085 ) | 5086 sed "s/^/$as_me: WARNING: /" >&2 5087 ;; 5088esac 5089echo "$as_me:$LINENO: checking for $ac_header" >&5 5090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5091if eval "test \"\${$as_ac_Header+set}\" = set"; then 5092 echo $ECHO_N "(cached) $ECHO_C" >&6 5093else 5094 eval "$as_ac_Header=\$ac_header_preproc" 5095fi 5096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5098 5099fi 5100if test `eval echo '${'$as_ac_Header'}'` = yes; then 5101 cat >>confdefs.h <<_ACEOF 5102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5103_ACEOF 5104 5105fi 5106 5107done 5108 5109 5110 5111for ac_header in sys/ptem.h 5112do 5113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5114echo "$as_me:$LINENO: checking for $ac_header" >&5 5115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5116if eval "test \"\${$as_ac_Header+set}\" = set"; then 5117 echo $ECHO_N "(cached) $ECHO_C" >&6 5118else 5119 cat >conftest.$ac_ext <<_ACEOF 5120/* confdefs.h. */ 5121_ACEOF 5122cat confdefs.h >>conftest.$ac_ext 5123cat >>conftest.$ac_ext <<_ACEOF 5124/* end confdefs.h. */ 5125 5126#if HAVE_SYS_STREAM_H 5127# include <sys/stream.h> 5128#endif 5129 5130 5131#include <$ac_header> 5132_ACEOF 5133rm -f conftest.$ac_objext 5134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5135 (eval $ac_compile) 2>conftest.er1 5136 ac_status=$? 5137 grep -v '^ *+' conftest.er1 >conftest.err 5138 rm -f conftest.er1 5139 cat conftest.err >&5 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && 5142 { ac_try='test -z "$ac_c_werror_flag" 5143 || test ! -s conftest.err' 5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5145 (eval $ac_try) 2>&5 5146 ac_status=$? 5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5148 (exit $ac_status); }; } && 5149 { ac_try='test -s conftest.$ac_objext' 5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5151 (eval $ac_try) 2>&5 5152 ac_status=$? 5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5154 (exit $ac_status); }; }; then 5155 eval "$as_ac_Header=yes" 5156else 5157 echo "$as_me: failed program was:" >&5 5158sed 's/^/| /' conftest.$ac_ext >&5 5159 5160eval "$as_ac_Header=no" 5161fi 5162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5163fi 5164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5166if test `eval echo '${'$as_ac_Header'}'` = yes; then 5167 cat >>confdefs.h <<_ACEOF 5168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5169_ACEOF 5170 5171fi 5172 5173done 5174 5175 5176 5177echo "$as_me:$LINENO: checking for type of signal functions" >&5 5178echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6 5179if test "${bash_cv_signal_vintage+set}" = set; then 5180 echo $ECHO_N "(cached) $ECHO_C" >&6 5181else 5182 5183 cat >conftest.$ac_ext <<_ACEOF 5184/* confdefs.h. */ 5185_ACEOF 5186cat confdefs.h >>conftest.$ac_ext 5187cat >>conftest.$ac_ext <<_ACEOF 5188/* end confdefs.h. */ 5189#include <signal.h> 5190int 5191main () 5192{ 5193 5194 sigset_t ss; 5195 struct sigaction sa; 5196 sigemptyset(&ss); sigsuspend(&ss); 5197 sigaction(SIGINT, &sa, (struct sigaction *) 0); 5198 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); 5199 5200 ; 5201 return 0; 5202} 5203_ACEOF 5204rm -f conftest.$ac_objext conftest$ac_exeext 5205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5206 (eval $ac_link) 2>conftest.er1 5207 ac_status=$? 5208 grep -v '^ *+' conftest.er1 >conftest.err 5209 rm -f conftest.er1 5210 cat conftest.err >&5 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); } && 5213 { ac_try='test -z "$ac_c_werror_flag" 5214 || test ! -s conftest.err' 5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5216 (eval $ac_try) 2>&5 5217 ac_status=$? 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); }; } && 5220 { ac_try='test -s conftest$ac_exeext' 5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5222 (eval $ac_try) 2>&5 5223 ac_status=$? 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); }; }; then 5226 bash_cv_signal_vintage=posix 5227else 5228 echo "$as_me: failed program was:" >&5 5229sed 's/^/| /' conftest.$ac_ext >&5 5230 5231 5232 cat >conftest.$ac_ext <<_ACEOF 5233/* confdefs.h. */ 5234_ACEOF 5235cat confdefs.h >>conftest.$ac_ext 5236cat >>conftest.$ac_ext <<_ACEOF 5237/* end confdefs.h. */ 5238#include <signal.h> 5239int 5240main () 5241{ 5242 5243 int mask = sigmask(SIGINT); 5244 sigsetmask(mask); sigblock(mask); sigpause(mask); 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250rm -f conftest.$ac_objext conftest$ac_exeext 5251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5252 (eval $ac_link) 2>conftest.er1 5253 ac_status=$? 5254 grep -v '^ *+' conftest.er1 >conftest.err 5255 rm -f conftest.er1 5256 cat conftest.err >&5 5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5258 (exit $ac_status); } && 5259 { ac_try='test -z "$ac_c_werror_flag" 5260 || test ! -s conftest.err' 5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5262 (eval $ac_try) 2>&5 5263 ac_status=$? 5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 (exit $ac_status); }; } && 5266 { ac_try='test -s conftest$ac_exeext' 5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5268 (eval $ac_try) 2>&5 5269 ac_status=$? 5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5271 (exit $ac_status); }; }; then 5272 bash_cv_signal_vintage=4.2bsd 5273else 5274 echo "$as_me: failed program was:" >&5 5275sed 's/^/| /' conftest.$ac_ext >&5 5276 5277 5278 cat >conftest.$ac_ext <<_ACEOF 5279/* confdefs.h. */ 5280_ACEOF 5281cat confdefs.h >>conftest.$ac_ext 5282cat >>conftest.$ac_ext <<_ACEOF 5283/* end confdefs.h. */ 5284 5285 #include <signal.h> 5286 RETSIGTYPE foo() { } 5287int 5288main () 5289{ 5290 5291 int mask = sigmask(SIGINT); 5292 sigset(SIGINT, foo); sigrelse(SIGINT); 5293 sighold(SIGINT); sigpause(SIGINT); 5294 5295 ; 5296 return 0; 5297} 5298_ACEOF 5299rm -f conftest.$ac_objext conftest$ac_exeext 5300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5301 (eval $ac_link) 2>conftest.er1 5302 ac_status=$? 5303 grep -v '^ *+' conftest.er1 >conftest.err 5304 rm -f conftest.er1 5305 cat conftest.err >&5 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5307 (exit $ac_status); } && 5308 { ac_try='test -z "$ac_c_werror_flag" 5309 || test ! -s conftest.err' 5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5311 (eval $ac_try) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); }; } && 5315 { ac_try='test -s conftest$ac_exeext' 5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5317 (eval $ac_try) 2>&5 5318 ac_status=$? 5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5320 (exit $ac_status); }; }; then 5321 bash_cv_signal_vintage=svr3 5322else 5323 echo "$as_me: failed program was:" >&5 5324sed 's/^/| /' conftest.$ac_ext >&5 5325 5326bash_cv_signal_vintage=v7 5327 5328fi 5329rm -f conftest.err conftest.$ac_objext \ 5330 conftest$ac_exeext conftest.$ac_ext 5331 5332fi 5333rm -f conftest.err conftest.$ac_objext \ 5334 conftest$ac_exeext conftest.$ac_ext 5335 5336fi 5337rm -f conftest.err conftest.$ac_objext \ 5338 conftest$ac_exeext conftest.$ac_ext 5339 5340fi 5341 5342echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 5343echo "${ECHO_T}$bash_cv_signal_vintage" >&6 5344if test "$bash_cv_signal_vintage" = posix; then 5345cat >>confdefs.h <<\_ACEOF 5346#define HAVE_POSIX_SIGNALS 1 5347_ACEOF 5348 5349elif test "$bash_cv_signal_vintage" = "4.2bsd"; then 5350cat >>confdefs.h <<\_ACEOF 5351#define HAVE_BSD_SIGNALS 1 5352_ACEOF 5353 5354elif test "$bash_cv_signal_vintage" = svr3; then 5355cat >>confdefs.h <<\_ACEOF 5356#define HAVE_USG_SIGHOLD 1 5357_ACEOF 5358 5359fi 5360 5361 5362 5363echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 5364echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6 5365if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then 5366 echo $ECHO_N "(cached) $ECHO_C" >&6 5367else 5368 if test "$cross_compiling" = yes; then 5369 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 5370echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} 5371 bash_cv_must_reinstall_sighandlers=no 5372 5373else 5374 cat >conftest.$ac_ext <<_ACEOF 5375/* confdefs.h. */ 5376_ACEOF 5377cat confdefs.h >>conftest.$ac_ext 5378cat >>conftest.$ac_ext <<_ACEOF 5379/* end confdefs.h. */ 5380 5381#include <signal.h> 5382#ifdef HAVE_UNISTD_H 5383#include <unistd.h> 5384#endif 5385 5386typedef RETSIGTYPE sigfunc(); 5387 5388int nsigint; 5389 5390#ifdef HAVE_POSIX_SIGNALS 5391sigfunc * 5392set_signal_handler(sig, handler) 5393 int sig; 5394 sigfunc *handler; 5395{ 5396 struct sigaction act, oact; 5397 act.sa_handler = handler; 5398 act.sa_flags = 0; 5399 sigemptyset (&act.sa_mask); 5400 sigemptyset (&oact.sa_mask); 5401 sigaction (sig, &act, &oact); 5402 return (oact.sa_handler); 5403} 5404#else 5405#define set_signal_handler(s, h) signal(s, h) 5406#endif 5407 5408RETSIGTYPE 5409sigint(s) 5410int s; 5411{ 5412 nsigint++; 5413} 5414 5415main() 5416{ 5417 nsigint = 0; 5418 set_signal_handler(SIGINT, sigint); 5419 kill((int)getpid(), SIGINT); 5420 kill((int)getpid(), SIGINT); 5421 exit(nsigint != 2); 5422} 5423 5424_ACEOF 5425rm -f conftest$ac_exeext 5426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5427 (eval $ac_link) 2>&5 5428 ac_status=$? 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5432 (eval $ac_try) 2>&5 5433 ac_status=$? 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); }; }; then 5436 bash_cv_must_reinstall_sighandlers=no 5437else 5438 echo "$as_me: program exited with status $ac_status" >&5 5439echo "$as_me: failed program was:" >&5 5440sed 's/^/| /' conftest.$ac_ext >&5 5441 5442( exit $ac_status ) 5443bash_cv_must_reinstall_sighandlers=yes 5444fi 5445rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5446fi 5447fi 5448 5449echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 5450echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6 5451if test $bash_cv_must_reinstall_sighandlers = yes; then 5452cat >>confdefs.h <<\_ACEOF 5453#define MUST_REINSTALL_SIGHANDLERS 1 5454_ACEOF 5455 5456fi 5457 5458 5459 5460echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 5461echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6 5462if test "${bash_cv_func_sigsetjmp+set}" = set; then 5463 echo $ECHO_N "(cached) $ECHO_C" >&6 5464else 5465 if test "$cross_compiling" = yes; then 5466 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 5467echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} 5468 bash_cv_func_sigsetjmp=missing 5469 5470else 5471 cat >conftest.$ac_ext <<_ACEOF 5472/* confdefs.h. */ 5473_ACEOF 5474cat confdefs.h >>conftest.$ac_ext 5475cat >>conftest.$ac_ext <<_ACEOF 5476/* end confdefs.h. */ 5477 5478#ifdef HAVE_UNISTD_H 5479#include <unistd.h> 5480#endif 5481#include <sys/types.h> 5482#include <signal.h> 5483#include <setjmp.h> 5484 5485main() 5486{ 5487#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) 5488exit (1); 5489#else 5490 5491int code; 5492sigset_t set, oset; 5493sigjmp_buf xx; 5494 5495/* get the mask */ 5496sigemptyset(&set); 5497sigemptyset(&oset); 5498sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); 5499sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); 5500 5501/* save it */ 5502code = sigsetjmp(xx, 1); 5503if (code) 5504 exit(0); /* could get sigmask and compare to oset here. */ 5505 5506/* change it */ 5507sigaddset(&set, SIGINT); 5508sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); 5509 5510/* and siglongjmp */ 5511siglongjmp(xx, 10); 5512exit(1); 5513#endif 5514} 5515_ACEOF 5516rm -f conftest$ac_exeext 5517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5518 (eval $ac_link) 2>&5 5519 ac_status=$? 5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5523 (eval $ac_try) 2>&5 5524 ac_status=$? 5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5526 (exit $ac_status); }; }; then 5527 bash_cv_func_sigsetjmp=present 5528else 5529 echo "$as_me: program exited with status $ac_status" >&5 5530echo "$as_me: failed program was:" >&5 5531sed 's/^/| /' conftest.$ac_ext >&5 5532 5533( exit $ac_status ) 5534bash_cv_func_sigsetjmp=missing 5535fi 5536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5537fi 5538fi 5539 5540echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 5541echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6 5542if test $bash_cv_func_sigsetjmp = present; then 5543cat >>confdefs.h <<\_ACEOF 5544#define HAVE_POSIX_SIGSETJMP 1 5545_ACEOF 5546 5547fi 5548 5549echo "$as_me:$LINENO: checking for lstat" >&5 5550echo $ECHO_N "checking for lstat... $ECHO_C" >&6 5551if test "${bash_cv_func_lstat+set}" = set; then 5552 echo $ECHO_N "(cached) $ECHO_C" >&6 5553else 5554 cat >conftest.$ac_ext <<_ACEOF 5555/* confdefs.h. */ 5556_ACEOF 5557cat confdefs.h >>conftest.$ac_ext 5558cat >>conftest.$ac_ext <<_ACEOF 5559/* end confdefs.h. */ 5560 5561#include <sys/types.h> 5562#include <sys/stat.h> 5563 5564int 5565main () 5566{ 5567 lstat(".",(struct stat *)0); 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572rm -f conftest.$ac_objext conftest$ac_exeext 5573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5574 (eval $ac_link) 2>conftest.er1 5575 ac_status=$? 5576 grep -v '^ *+' conftest.er1 >conftest.err 5577 rm -f conftest.er1 5578 cat conftest.err >&5 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); } && 5581 { ac_try='test -z "$ac_c_werror_flag" 5582 || test ! -s conftest.err' 5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5584 (eval $ac_try) 2>&5 5585 ac_status=$? 5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); }; } && 5588 { ac_try='test -s conftest$ac_exeext' 5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5590 (eval $ac_try) 2>&5 5591 ac_status=$? 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); }; }; then 5594 bash_cv_func_lstat=yes 5595else 5596 echo "$as_me: failed program was:" >&5 5597sed 's/^/| /' conftest.$ac_ext >&5 5598 5599bash_cv_func_lstat=no 5600fi 5601rm -f conftest.err conftest.$ac_objext \ 5602 conftest$ac_exeext conftest.$ac_ext 5603fi 5604echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 5605echo "${ECHO_T}$bash_cv_func_lstat" >&6 5606if test $bash_cv_func_lstat = yes; then 5607 cat >>confdefs.h <<\_ACEOF 5608#define HAVE_LSTAT 1 5609_ACEOF 5610 5611fi 5612 5613 5614echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 5615echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6 5616if test "${bash_cv_func_strcoll_broken+set}" = set; then 5617 echo $ECHO_N "(cached) $ECHO_C" >&6 5618else 5619 if test "$cross_compiling" = yes; then 5620 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 5621echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} 5622 bash_cv_func_strcoll_broken=no 5623 5624else 5625 cat >conftest.$ac_ext <<_ACEOF 5626/* confdefs.h. */ 5627_ACEOF 5628cat confdefs.h >>conftest.$ac_ext 5629cat >>conftest.$ac_ext <<_ACEOF 5630/* end confdefs.h. */ 5631 5632#include <stdio.h> 5633#if defined (HAVE_LOCALE_H) 5634#include <locale.h> 5635#endif 5636 5637main(c, v) 5638int c; 5639char *v[]; 5640{ 5641 int r1, r2; 5642 char *deflocale, *defcoll; 5643 5644#ifdef HAVE_SETLOCALE 5645 deflocale = setlocale(LC_ALL, ""); 5646 defcoll = setlocale(LC_COLLATE, ""); 5647#endif 5648 5649#ifdef HAVE_STRCOLL 5650 /* These two values are taken from tests/glob-test. */ 5651 r1 = strcoll("abd", "aXd"); 5652#else 5653 r1 = 0; 5654#endif 5655 r2 = strcmp("abd", "aXd"); 5656 5657 /* These two should both be greater than 0. It is permissible for 5658 a system to return different values, as long as the sign is the 5659 same. */ 5660 5661 /* Exit with 1 (failure) if these two values are both > 0, since 5662 this tests whether strcoll(3) is broken with respect to strcmp(3) 5663 in the default locale. */ 5664 exit (r1 > 0 && r2 > 0); 5665} 5666 5667_ACEOF 5668rm -f conftest$ac_exeext 5669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5670 (eval $ac_link) 2>&5 5671 ac_status=$? 5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5675 (eval $ac_try) 2>&5 5676 ac_status=$? 5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5678 (exit $ac_status); }; }; then 5679 bash_cv_func_strcoll_broken=yes 5680else 5681 echo "$as_me: program exited with status $ac_status" >&5 5682echo "$as_me: failed program was:" >&5 5683sed 's/^/| /' conftest.$ac_ext >&5 5684 5685( exit $ac_status ) 5686bash_cv_func_strcoll_broken=no 5687fi 5688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5689fi 5690fi 5691 5692echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 5693echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6 5694if test $bash_cv_func_strcoll_broken = yes; then 5695cat >>confdefs.h <<\_ACEOF 5696#define STRCOLL_BROKEN 1 5697_ACEOF 5698 5699fi 5700 5701 5702echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5 5703echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6 5704if test "${bash_cv_func_ctype_nonascii+set}" = set; then 5705 echo $ECHO_N "(cached) $ECHO_C" >&6 5706else 5707 if test "$cross_compiling" = yes; then 5708 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5 5709echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;} 5710 bash_cv_func_ctype_nonascii=no 5711 5712else 5713 cat >conftest.$ac_ext <<_ACEOF 5714/* confdefs.h. */ 5715_ACEOF 5716cat confdefs.h >>conftest.$ac_ext 5717cat >>conftest.$ac_ext <<_ACEOF 5718/* end confdefs.h. */ 5719 5720#ifdef HAVE_LOCALE_H 5721#include <locale.h> 5722#endif 5723#include <stdio.h> 5724#include <ctype.h> 5725 5726main(c, v) 5727int c; 5728char *v[]; 5729{ 5730 char *deflocale; 5731 unsigned char x; 5732 int r1, r2; 5733 5734#ifdef HAVE_SETLOCALE 5735 /* We take a shot here. If that locale is not known, try the 5736 system default. We try this one because '\342' (226) is 5737 known to be a printable character in that locale. */ 5738 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1"); 5739 if (deflocale == 0) 5740 deflocale = setlocale(LC_ALL, ""); 5741#endif 5742 5743 x = '\342'; 5744 r1 = isprint(x); 5745 x -= 128; 5746 r2 = isprint(x); 5747 exit (r1 == 0 || r2 == 0); 5748} 5749 5750_ACEOF 5751rm -f conftest$ac_exeext 5752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5753 (eval $ac_link) 2>&5 5754 ac_status=$? 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5758 (eval $ac_try) 2>&5 5759 ac_status=$? 5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5761 (exit $ac_status); }; }; then 5762 bash_cv_func_ctype_nonascii=yes 5763else 5764 echo "$as_me: program exited with status $ac_status" >&5 5765echo "$as_me: failed program was:" >&5 5766sed 's/^/| /' conftest.$ac_ext >&5 5767 5768( exit $ac_status ) 5769bash_cv_func_ctype_nonascii=no 5770fi 5771rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5772fi 5773fi 5774 5775echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5 5776echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6 5777if test $bash_cv_func_ctype_nonascii = yes; then 5778cat >>confdefs.h <<\_ACEOF 5779#define CTYPE_NON_ASCII 1 5780_ACEOF 5781 5782fi 5783 5784 5785echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 5786echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6 5787if test "${bash_cv_getpw_declared+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 cat >conftest.$ac_ext <<_ACEOF 5791/* confdefs.h. */ 5792_ACEOF 5793cat confdefs.h >>conftest.$ac_ext 5794cat >>conftest.$ac_ext <<_ACEOF 5795/* end confdefs.h. */ 5796 5797#include <sys/types.h> 5798#ifdef HAVE_UNISTD_H 5799# include <unistd.h> 5800#endif 5801#include <pwd.h> 5802 5803_ACEOF 5804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5805 $EGREP "getpwuid" >/dev/null 2>&1; then 5806 bash_cv_getpw_declared=yes 5807else 5808 bash_cv_getpw_declared=no 5809fi 5810rm -f conftest* 5811 5812fi 5813 5814echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 5815echo "${ECHO_T}$bash_cv_getpw_declared" >&6 5816if test $bash_cv_getpw_declared = yes; then 5817cat >>confdefs.h <<\_ACEOF 5818#define HAVE_GETPW_DECLS 1 5819_ACEOF 5820 5821fi 5822 5823 5824echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 5825echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 5826if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 5827 echo $ECHO_N "(cached) $ECHO_C" >&6 5828else 5829 cat >conftest.$ac_ext <<_ACEOF 5830/* confdefs.h. */ 5831_ACEOF 5832cat confdefs.h >>conftest.$ac_ext 5833cat >>conftest.$ac_ext <<_ACEOF 5834/* end confdefs.h. */ 5835#include <sys/types.h> 5836#include <termios.h> 5837#ifdef TIOCGWINSZ 5838 yes 5839#endif 5840 5841_ACEOF 5842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5843 $EGREP "yes" >/dev/null 2>&1; then 5844 ac_cv_sys_tiocgwinsz_in_termios_h=yes 5845else 5846 ac_cv_sys_tiocgwinsz_in_termios_h=no 5847fi 5848rm -f conftest* 5849 5850fi 5851echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 5852echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 5853 5854if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 5855 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 5856echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 5857if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 5858 echo $ECHO_N "(cached) $ECHO_C" >&6 5859else 5860 cat >conftest.$ac_ext <<_ACEOF 5861/* confdefs.h. */ 5862_ACEOF 5863cat confdefs.h >>conftest.$ac_ext 5864cat >>conftest.$ac_ext <<_ACEOF 5865/* end confdefs.h. */ 5866#include <sys/types.h> 5867#include <sys/ioctl.h> 5868#ifdef TIOCGWINSZ 5869 yes 5870#endif 5871 5872_ACEOF 5873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5874 $EGREP "yes" >/dev/null 2>&1; then 5875 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 5876else 5877 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 5878fi 5879rm -f conftest* 5880 5881fi 5882echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 5883echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 5884 5885 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 5886 5887cat >>confdefs.h <<\_ACEOF 5888#define GWINSZ_IN_SYS_IOCTL 1 5889_ACEOF 5890 5891 fi 5892fi 5893 5894 5895echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 5896echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6 5897if test "${bash_cv_void_sighandler+set}" = set; then 5898 echo $ECHO_N "(cached) $ECHO_C" >&6 5899else 5900 cat >conftest.$ac_ext <<_ACEOF 5901/* confdefs.h. */ 5902_ACEOF 5903cat confdefs.h >>conftest.$ac_ext 5904cat >>conftest.$ac_ext <<_ACEOF 5905/* end confdefs.h. */ 5906#include <sys/types.h> 5907#include <signal.h> 5908#ifdef signal 5909#undef signal 5910#endif 5911#ifdef __cplusplus 5912extern "C" 5913#endif 5914void (*signal ()) (); 5915int 5916main () 5917{ 5918int i; 5919 ; 5920 return 0; 5921} 5922_ACEOF 5923rm -f conftest.$ac_objext 5924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5925 (eval $ac_compile) 2>conftest.er1 5926 ac_status=$? 5927 grep -v '^ *+' conftest.er1 >conftest.err 5928 rm -f conftest.er1 5929 cat conftest.err >&5 5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 (exit $ac_status); } && 5932 { ac_try='test -z "$ac_c_werror_flag" 5933 || test ! -s conftest.err' 5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5935 (eval $ac_try) 2>&5 5936 ac_status=$? 5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5938 (exit $ac_status); }; } && 5939 { ac_try='test -s conftest.$ac_objext' 5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5941 (eval $ac_try) 2>&5 5942 ac_status=$? 5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5944 (exit $ac_status); }; }; then 5945 bash_cv_void_sighandler=yes 5946else 5947 echo "$as_me: failed program was:" >&5 5948sed 's/^/| /' conftest.$ac_ext >&5 5949 5950bash_cv_void_sighandler=no 5951fi 5952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5953fi 5954echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 5955echo "${ECHO_T}$bash_cv_void_sighandler" >&6 5956if test $bash_cv_void_sighandler = yes; then 5957cat >>confdefs.h <<\_ACEOF 5958#define VOID_SIGHANDLER 1 5959_ACEOF 5960 5961fi 5962 5963echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 5964echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6 5965if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then 5966 echo $ECHO_N "(cached) $ECHO_C" >&6 5967else 5968 cat >conftest.$ac_ext <<_ACEOF 5969/* confdefs.h. */ 5970_ACEOF 5971cat confdefs.h >>conftest.$ac_ext 5972cat >>conftest.$ac_ext <<_ACEOF 5973/* end confdefs.h. */ 5974#include <sys/types.h> 5975#include <sys/ioctl.h> 5976int 5977main () 5978{ 5979int x = TIOCSTAT; 5980 ; 5981 return 0; 5982} 5983_ACEOF 5984rm -f conftest.$ac_objext 5985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5986 (eval $ac_compile) 2>conftest.er1 5987 ac_status=$? 5988 grep -v '^ *+' conftest.er1 >conftest.err 5989 rm -f conftest.er1 5990 cat conftest.err >&5 5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5992 (exit $ac_status); } && 5993 { ac_try='test -z "$ac_c_werror_flag" 5994 || test ! -s conftest.err' 5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5996 (eval $ac_try) 2>&5 5997 ac_status=$? 5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5999 (exit $ac_status); }; } && 6000 { ac_try='test -s conftest.$ac_objext' 6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6002 (eval $ac_try) 2>&5 6003 ac_status=$? 6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6005 (exit $ac_status); }; }; then 6006 bash_cv_tiocstat_in_ioctl=yes 6007else 6008 echo "$as_me: failed program was:" >&5 6009sed 's/^/| /' conftest.$ac_ext >&5 6010 6011bash_cv_tiocstat_in_ioctl=no 6012fi 6013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6014fi 6015 6016echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 6017echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6 6018if test $bash_cv_tiocstat_in_ioctl = yes; then 6019cat >>confdefs.h <<\_ACEOF 6020#define TIOCSTAT_IN_SYS_IOCTL 1 6021_ACEOF 6022 6023fi 6024 6025echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 6026echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6 6027if test "${bash_cv_fionread_in_ioctl+set}" = set; then 6028 echo $ECHO_N "(cached) $ECHO_C" >&6 6029else 6030 cat >conftest.$ac_ext <<_ACEOF 6031/* confdefs.h. */ 6032_ACEOF 6033cat confdefs.h >>conftest.$ac_ext 6034cat >>conftest.$ac_ext <<_ACEOF 6035/* end confdefs.h. */ 6036#include <sys/types.h> 6037#include <sys/ioctl.h> 6038int 6039main () 6040{ 6041int x = FIONREAD; 6042 ; 6043 return 0; 6044} 6045_ACEOF 6046rm -f conftest.$ac_objext 6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6048 (eval $ac_compile) 2>conftest.er1 6049 ac_status=$? 6050 grep -v '^ *+' conftest.er1 >conftest.err 6051 rm -f conftest.er1 6052 cat conftest.err >&5 6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6054 (exit $ac_status); } && 6055 { ac_try='test -z "$ac_c_werror_flag" 6056 || test ! -s conftest.err' 6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6058 (eval $ac_try) 2>&5 6059 ac_status=$? 6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6061 (exit $ac_status); }; } && 6062 { ac_try='test -s conftest.$ac_objext' 6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6064 (eval $ac_try) 2>&5 6065 ac_status=$? 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); }; }; then 6068 bash_cv_fionread_in_ioctl=yes 6069else 6070 echo "$as_me: failed program was:" >&5 6071sed 's/^/| /' conftest.$ac_ext >&5 6072 6073bash_cv_fionread_in_ioctl=no 6074fi 6075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6076fi 6077 6078echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 6079echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6 6080if test $bash_cv_fionread_in_ioctl = yes; then 6081cat >>confdefs.h <<\_ACEOF 6082#define FIONREAD_IN_SYS_IOCTL 1 6083_ACEOF 6084 6085fi 6086 6087echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 6088echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6 6089if test "${bash_cv_speed_t_in_sys_types+set}" = set; then 6090 echo $ECHO_N "(cached) $ECHO_C" >&6 6091else 6092 cat >conftest.$ac_ext <<_ACEOF 6093/* confdefs.h. */ 6094_ACEOF 6095cat confdefs.h >>conftest.$ac_ext 6096cat >>conftest.$ac_ext <<_ACEOF 6097/* end confdefs.h. */ 6098#include <sys/types.h> 6099int 6100main () 6101{ 6102speed_t x; 6103 ; 6104 return 0; 6105} 6106_ACEOF 6107rm -f conftest.$ac_objext 6108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6109 (eval $ac_compile) 2>conftest.er1 6110 ac_status=$? 6111 grep -v '^ *+' conftest.er1 >conftest.err 6112 rm -f conftest.er1 6113 cat conftest.err >&5 6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6115 (exit $ac_status); } && 6116 { ac_try='test -z "$ac_c_werror_flag" 6117 || test ! -s conftest.err' 6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6119 (eval $ac_try) 2>&5 6120 ac_status=$? 6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 (exit $ac_status); }; } && 6123 { ac_try='test -s conftest.$ac_objext' 6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6125 (eval $ac_try) 2>&5 6126 ac_status=$? 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); }; }; then 6129 bash_cv_speed_t_in_sys_types=yes 6130else 6131 echo "$as_me: failed program was:" >&5 6132sed 's/^/| /' conftest.$ac_ext >&5 6133 6134bash_cv_speed_t_in_sys_types=no 6135fi 6136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6137fi 6138 6139echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 6140echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6 6141if test $bash_cv_speed_t_in_sys_types = yes; then 6142cat >>confdefs.h <<\_ACEOF 6143#define SPEED_T_IN_SYS_TYPES 1 6144_ACEOF 6145 6146fi 6147 6148echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 6149echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6 6150if test "${bash_cv_struct_winsize_header+set}" = set; then 6151 echo $ECHO_N "(cached) $ECHO_C" >&6 6152else 6153 cat >conftest.$ac_ext <<_ACEOF 6154/* confdefs.h. */ 6155_ACEOF 6156cat confdefs.h >>conftest.$ac_ext 6157cat >>conftest.$ac_ext <<_ACEOF 6158/* end confdefs.h. */ 6159#include <sys/types.h> 6160#include <sys/ioctl.h> 6161int 6162main () 6163{ 6164struct winsize x; 6165 ; 6166 return 0; 6167} 6168_ACEOF 6169rm -f conftest.$ac_objext 6170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6171 (eval $ac_compile) 2>conftest.er1 6172 ac_status=$? 6173 grep -v '^ *+' conftest.er1 >conftest.err 6174 rm -f conftest.er1 6175 cat conftest.err >&5 6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6177 (exit $ac_status); } && 6178 { ac_try='test -z "$ac_c_werror_flag" 6179 || test ! -s conftest.err' 6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6181 (eval $ac_try) 2>&5 6182 ac_status=$? 6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); }; } && 6185 { ac_try='test -s conftest.$ac_objext' 6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6187 (eval $ac_try) 2>&5 6188 ac_status=$? 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6190 (exit $ac_status); }; }; then 6191 bash_cv_struct_winsize_header=ioctl_h 6192else 6193 echo "$as_me: failed program was:" >&5 6194sed 's/^/| /' conftest.$ac_ext >&5 6195 6196cat >conftest.$ac_ext <<_ACEOF 6197/* confdefs.h. */ 6198_ACEOF 6199cat confdefs.h >>conftest.$ac_ext 6200cat >>conftest.$ac_ext <<_ACEOF 6201/* end confdefs.h. */ 6202#include <sys/types.h> 6203#include <termios.h> 6204int 6205main () 6206{ 6207struct winsize x; 6208 ; 6209 return 0; 6210} 6211_ACEOF 6212rm -f conftest.$ac_objext 6213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6214 (eval $ac_compile) 2>conftest.er1 6215 ac_status=$? 6216 grep -v '^ *+' conftest.er1 >conftest.err 6217 rm -f conftest.er1 6218 cat conftest.err >&5 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 (exit $ac_status); } && 6221 { ac_try='test -z "$ac_c_werror_flag" 6222 || test ! -s conftest.err' 6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6224 (eval $ac_try) 2>&5 6225 ac_status=$? 6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6227 (exit $ac_status); }; } && 6228 { ac_try='test -s conftest.$ac_objext' 6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6230 (eval $ac_try) 2>&5 6231 ac_status=$? 6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6233 (exit $ac_status); }; }; then 6234 bash_cv_struct_winsize_header=termios_h 6235else 6236 echo "$as_me: failed program was:" >&5 6237sed 's/^/| /' conftest.$ac_ext >&5 6238 6239bash_cv_struct_winsize_header=other 6240fi 6241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6242 6243fi 6244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6245fi 6246 6247if test $bash_cv_struct_winsize_header = ioctl_h; then 6248 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 6249echo "${ECHO_T}sys/ioctl.h" >&6 6250 cat >>confdefs.h <<\_ACEOF 6251#define STRUCT_WINSIZE_IN_SYS_IOCTL 1 6252_ACEOF 6253 6254elif test $bash_cv_struct_winsize_header = termios_h; then 6255 echo "$as_me:$LINENO: result: termios.h" >&5 6256echo "${ECHO_T}termios.h" >&6 6257 cat >>confdefs.h <<\_ACEOF 6258#define STRUCT_WINSIZE_IN_TERMIOS 1 6259_ACEOF 6260 6261else 6262 echo "$as_me:$LINENO: result: not found" >&5 6263echo "${ECHO_T}not found" >&6 6264fi 6265 6266 6267echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5 6268echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6 6269if test "${bash_cv_dirent_has_dino+set}" = set; then 6270 echo $ECHO_N "(cached) $ECHO_C" >&6 6271else 6272 cat >conftest.$ac_ext <<_ACEOF 6273/* confdefs.h. */ 6274_ACEOF 6275cat confdefs.h >>conftest.$ac_ext 6276cat >>conftest.$ac_ext <<_ACEOF 6277/* end confdefs.h. */ 6278 6279#include <stdio.h> 6280#include <sys/types.h> 6281#ifdef HAVE_UNISTD_H 6282# include <unistd.h> 6283#endif /* HAVE_UNISTD_H */ 6284#if defined(HAVE_DIRENT_H) 6285# include <dirent.h> 6286#else 6287# define dirent direct 6288# ifdef HAVE_SYS_NDIR_H 6289# include <sys/ndir.h> 6290# endif /* SYSNDIR */ 6291# ifdef HAVE_SYS_DIR_H 6292# include <sys/dir.h> 6293# endif /* SYSDIR */ 6294# ifdef HAVE_NDIR_H 6295# include <ndir.h> 6296# endif 6297#endif /* HAVE_DIRENT_H */ 6298 6299int 6300main () 6301{ 6302 6303struct dirent d; int z; z = d.d_ino; 6304 6305 ; 6306 return 0; 6307} 6308_ACEOF 6309rm -f conftest.$ac_objext 6310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6311 (eval $ac_compile) 2>conftest.er1 6312 ac_status=$? 6313 grep -v '^ *+' conftest.er1 >conftest.err 6314 rm -f conftest.er1 6315 cat conftest.err >&5 6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); } && 6318 { ac_try='test -z "$ac_c_werror_flag" 6319 || test ! -s conftest.err' 6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6321 (eval $ac_try) 2>&5 6322 ac_status=$? 6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6324 (exit $ac_status); }; } && 6325 { ac_try='test -s conftest.$ac_objext' 6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6327 (eval $ac_try) 2>&5 6328 ac_status=$? 6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6330 (exit $ac_status); }; }; then 6331 bash_cv_dirent_has_dino=yes 6332else 6333 echo "$as_me: failed program was:" >&5 6334sed 's/^/| /' conftest.$ac_ext >&5 6335 6336bash_cv_dirent_has_dino=no 6337fi 6338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6339fi 6340 6341echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 6342echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6 6343if test $bash_cv_dirent_has_dino = yes; then 6344cat >>confdefs.h <<\_ACEOF 6345#define HAVE_STRUCT_DIRENT_D_INO 1 6346_ACEOF 6347 6348fi 6349 6350 6351echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5 6352echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6 6353if test "${bash_cv_dirent_has_d_fileno+set}" = set; then 6354 echo $ECHO_N "(cached) $ECHO_C" >&6 6355else 6356 cat >conftest.$ac_ext <<_ACEOF 6357/* confdefs.h. */ 6358_ACEOF 6359cat confdefs.h >>conftest.$ac_ext 6360cat >>conftest.$ac_ext <<_ACEOF 6361/* end confdefs.h. */ 6362 6363#include <stdio.h> 6364#include <sys/types.h> 6365#ifdef HAVE_UNISTD_H 6366# include <unistd.h> 6367#endif /* HAVE_UNISTD_H */ 6368#if defined(HAVE_DIRENT_H) 6369# include <dirent.h> 6370#else 6371# define dirent direct 6372# ifdef HAVE_SYS_NDIR_H 6373# include <sys/ndir.h> 6374# endif /* SYSNDIR */ 6375# ifdef HAVE_SYS_DIR_H 6376# include <sys/dir.h> 6377# endif /* SYSDIR */ 6378# ifdef HAVE_NDIR_H 6379# include <ndir.h> 6380# endif 6381#endif /* HAVE_DIRENT_H */ 6382 6383int 6384main () 6385{ 6386 6387struct dirent d; int z; z = d.d_fileno; 6388 6389 ; 6390 return 0; 6391} 6392_ACEOF 6393rm -f conftest.$ac_objext 6394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6395 (eval $ac_compile) 2>conftest.er1 6396 ac_status=$? 6397 grep -v '^ *+' conftest.er1 >conftest.err 6398 rm -f conftest.er1 6399 cat conftest.err >&5 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); } && 6402 { ac_try='test -z "$ac_c_werror_flag" 6403 || test ! -s conftest.err' 6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6405 (eval $ac_try) 2>&5 6406 ac_status=$? 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); }; } && 6409 { ac_try='test -s conftest.$ac_objext' 6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6411 (eval $ac_try) 2>&5 6412 ac_status=$? 6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6414 (exit $ac_status); }; }; then 6415 bash_cv_dirent_has_d_fileno=yes 6416else 6417 echo "$as_me: failed program was:" >&5 6418sed 's/^/| /' conftest.$ac_ext >&5 6419 6420bash_cv_dirent_has_d_fileno=no 6421fi 6422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6423fi 6424 6425echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 6426echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6 6427if test $bash_cv_dirent_has_d_fileno = yes; then 6428cat >>confdefs.h <<\_ACEOF 6429#define HAVE_STRUCT_DIRENT_D_FILENO 1 6430_ACEOF 6431 6432fi 6433 6434 6435case "$host_os" in 6436aix*) prefer_curses=yes ;; 6437esac 6438 6439if test "X$bash_cv_termcap_lib" = "X"; then 6440_bash_needmsg=yes 6441else 6442echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 6443echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 6444_bash_needmsg= 6445fi 6446if test "${bash_cv_termcap_lib+set}" = set; then 6447 echo $ECHO_N "(cached) $ECHO_C" >&6 6448else 6449 echo "$as_me:$LINENO: checking for tgetent" >&5 6450echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 6451if test "${ac_cv_func_tgetent+set}" = set; then 6452 echo $ECHO_N "(cached) $ECHO_C" >&6 6453else 6454 cat >conftest.$ac_ext <<_ACEOF 6455/* confdefs.h. */ 6456_ACEOF 6457cat confdefs.h >>conftest.$ac_ext 6458cat >>conftest.$ac_ext <<_ACEOF 6459/* end confdefs.h. */ 6460/* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent. 6461 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6462#define tgetent innocuous_tgetent 6463 6464/* System header to define __stub macros and hopefully few prototypes, 6465 which can conflict with char tgetent (); below. 6466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6467 <limits.h> exists even on freestanding compilers. */ 6468 6469#ifdef __STDC__ 6470# include <limits.h> 6471#else 6472# include <assert.h> 6473#endif 6474 6475#undef tgetent 6476 6477/* Override any gcc2 internal prototype to avoid an error. */ 6478#ifdef __cplusplus 6479extern "C" 6480{ 6481#endif 6482/* We use char because int might match the return type of a gcc2 6483 builtin and then its argument prototype would still apply. */ 6484char tgetent (); 6485/* The GNU C library defines this for functions which it implements 6486 to always fail with ENOSYS. Some functions are actually named 6487 something starting with __ and the normal name is an alias. */ 6488#if defined (__stub_tgetent) || defined (__stub___tgetent) 6489choke me 6490#else 6491char (*f) () = tgetent; 6492#endif 6493#ifdef __cplusplus 6494} 6495#endif 6496 6497int 6498main () 6499{ 6500return f != tgetent; 6501 ; 6502 return 0; 6503} 6504_ACEOF 6505rm -f conftest.$ac_objext conftest$ac_exeext 6506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6507 (eval $ac_link) 2>conftest.er1 6508 ac_status=$? 6509 grep -v '^ *+' conftest.er1 >conftest.err 6510 rm -f conftest.er1 6511 cat conftest.err >&5 6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6513 (exit $ac_status); } && 6514 { ac_try='test -z "$ac_c_werror_flag" 6515 || test ! -s conftest.err' 6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6517 (eval $ac_try) 2>&5 6518 ac_status=$? 6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6520 (exit $ac_status); }; } && 6521 { ac_try='test -s conftest$ac_exeext' 6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6523 (eval $ac_try) 2>&5 6524 ac_status=$? 6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6526 (exit $ac_status); }; }; then 6527 ac_cv_func_tgetent=yes 6528else 6529 echo "$as_me: failed program was:" >&5 6530sed 's/^/| /' conftest.$ac_ext >&5 6531 6532ac_cv_func_tgetent=no 6533fi 6534rm -f conftest.err conftest.$ac_objext \ 6535 conftest$ac_exeext conftest.$ac_ext 6536fi 6537echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5 6538echo "${ECHO_T}$ac_cv_func_tgetent" >&6 6539if test $ac_cv_func_tgetent = yes; then 6540 bash_cv_termcap_lib=libc 6541else 6542 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 6543echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 6544if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 6545 echo $ECHO_N "(cached) $ECHO_C" >&6 6546else 6547 ac_check_lib_save_LIBS=$LIBS 6548LIBS="-ltermcap $LIBS" 6549cat >conftest.$ac_ext <<_ACEOF 6550/* confdefs.h. */ 6551_ACEOF 6552cat confdefs.h >>conftest.$ac_ext 6553cat >>conftest.$ac_ext <<_ACEOF 6554/* end confdefs.h. */ 6555 6556/* Override any gcc2 internal prototype to avoid an error. */ 6557#ifdef __cplusplus 6558extern "C" 6559#endif 6560/* We use char because int might match the return type of a gcc2 6561 builtin and then its argument prototype would still apply. */ 6562char tgetent (); 6563int 6564main () 6565{ 6566tgetent (); 6567 ; 6568 return 0; 6569} 6570_ACEOF 6571rm -f conftest.$ac_objext conftest$ac_exeext 6572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6573 (eval $ac_link) 2>conftest.er1 6574 ac_status=$? 6575 grep -v '^ *+' conftest.er1 >conftest.err 6576 rm -f conftest.er1 6577 cat conftest.err >&5 6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6579 (exit $ac_status); } && 6580 { ac_try='test -z "$ac_c_werror_flag" 6581 || test ! -s conftest.err' 6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6583 (eval $ac_try) 2>&5 6584 ac_status=$? 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6586 (exit $ac_status); }; } && 6587 { ac_try='test -s conftest$ac_exeext' 6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6589 (eval $ac_try) 2>&5 6590 ac_status=$? 6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6592 (exit $ac_status); }; }; then 6593 ac_cv_lib_termcap_tgetent=yes 6594else 6595 echo "$as_me: failed program was:" >&5 6596sed 's/^/| /' conftest.$ac_ext >&5 6597 6598ac_cv_lib_termcap_tgetent=no 6599fi 6600rm -f conftest.err conftest.$ac_objext \ 6601 conftest$ac_exeext conftest.$ac_ext 6602LIBS=$ac_check_lib_save_LIBS 6603fi 6604echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 6605echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 6606if test $ac_cv_lib_termcap_tgetent = yes; then 6607 bash_cv_termcap_lib=libtermcap 6608else 6609 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 6610echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6 6611if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then 6612 echo $ECHO_N "(cached) $ECHO_C" >&6 6613else 6614 ac_check_lib_save_LIBS=$LIBS 6615LIBS="-ltinfo $LIBS" 6616cat >conftest.$ac_ext <<_ACEOF 6617/* confdefs.h. */ 6618_ACEOF 6619cat confdefs.h >>conftest.$ac_ext 6620cat >>conftest.$ac_ext <<_ACEOF 6621/* end confdefs.h. */ 6622 6623/* Override any gcc2 internal prototype to avoid an error. */ 6624#ifdef __cplusplus 6625extern "C" 6626#endif 6627/* We use char because int might match the return type of a gcc2 6628 builtin and then its argument prototype would still apply. */ 6629char tgetent (); 6630int 6631main () 6632{ 6633tgetent (); 6634 ; 6635 return 0; 6636} 6637_ACEOF 6638rm -f conftest.$ac_objext conftest$ac_exeext 6639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6640 (eval $ac_link) 2>conftest.er1 6641 ac_status=$? 6642 grep -v '^ *+' conftest.er1 >conftest.err 6643 rm -f conftest.er1 6644 cat conftest.err >&5 6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6646 (exit $ac_status); } && 6647 { ac_try='test -z "$ac_c_werror_flag" 6648 || test ! -s conftest.err' 6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6650 (eval $ac_try) 2>&5 6651 ac_status=$? 6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6653 (exit $ac_status); }; } && 6654 { ac_try='test -s conftest$ac_exeext' 6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6656 (eval $ac_try) 2>&5 6657 ac_status=$? 6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6659 (exit $ac_status); }; }; then 6660 ac_cv_lib_tinfo_tgetent=yes 6661else 6662 echo "$as_me: failed program was:" >&5 6663sed 's/^/| /' conftest.$ac_ext >&5 6664 6665ac_cv_lib_tinfo_tgetent=no 6666fi 6667rm -f conftest.err conftest.$ac_objext \ 6668 conftest$ac_exeext conftest.$ac_ext 6669LIBS=$ac_check_lib_save_LIBS 6670fi 6671echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 6672echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6 6673if test $ac_cv_lib_tinfo_tgetent = yes; then 6674 bash_cv_termcap_lib=libtinfo 6675else 6676 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 6677echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 6678if test "${ac_cv_lib_curses_tgetent+set}" = set; then 6679 echo $ECHO_N "(cached) $ECHO_C" >&6 6680else 6681 ac_check_lib_save_LIBS=$LIBS 6682LIBS="-lcurses $LIBS" 6683cat >conftest.$ac_ext <<_ACEOF 6684/* confdefs.h. */ 6685_ACEOF 6686cat confdefs.h >>conftest.$ac_ext 6687cat >>conftest.$ac_ext <<_ACEOF 6688/* end confdefs.h. */ 6689 6690/* Override any gcc2 internal prototype to avoid an error. */ 6691#ifdef __cplusplus 6692extern "C" 6693#endif 6694/* We use char because int might match the return type of a gcc2 6695 builtin and then its argument prototype would still apply. */ 6696char tgetent (); 6697int 6698main () 6699{ 6700tgetent (); 6701 ; 6702 return 0; 6703} 6704_ACEOF 6705rm -f conftest.$ac_objext conftest$ac_exeext 6706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6707 (eval $ac_link) 2>conftest.er1 6708 ac_status=$? 6709 grep -v '^ *+' conftest.er1 >conftest.err 6710 rm -f conftest.er1 6711 cat conftest.err >&5 6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 (exit $ac_status); } && 6714 { ac_try='test -z "$ac_c_werror_flag" 6715 || test ! -s conftest.err' 6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6717 (eval $ac_try) 2>&5 6718 ac_status=$? 6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 (exit $ac_status); }; } && 6721 { ac_try='test -s conftest$ac_exeext' 6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6723 (eval $ac_try) 2>&5 6724 ac_status=$? 6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6726 (exit $ac_status); }; }; then 6727 ac_cv_lib_curses_tgetent=yes 6728else 6729 echo "$as_me: failed program was:" >&5 6730sed 's/^/| /' conftest.$ac_ext >&5 6731 6732ac_cv_lib_curses_tgetent=no 6733fi 6734rm -f conftest.err conftest.$ac_objext \ 6735 conftest$ac_exeext conftest.$ac_ext 6736LIBS=$ac_check_lib_save_LIBS 6737fi 6738echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 6739echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 6740if test $ac_cv_lib_curses_tgetent = yes; then 6741 bash_cv_termcap_lib=libcurses 6742else 6743 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 6744echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 6745if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then 6746 echo $ECHO_N "(cached) $ECHO_C" >&6 6747else 6748 ac_check_lib_save_LIBS=$LIBS 6749LIBS="-lncurses $LIBS" 6750cat >conftest.$ac_ext <<_ACEOF 6751/* confdefs.h. */ 6752_ACEOF 6753cat confdefs.h >>conftest.$ac_ext 6754cat >>conftest.$ac_ext <<_ACEOF 6755/* end confdefs.h. */ 6756 6757/* Override any gcc2 internal prototype to avoid an error. */ 6758#ifdef __cplusplus 6759extern "C" 6760#endif 6761/* We use char because int might match the return type of a gcc2 6762 builtin and then its argument prototype would still apply. */ 6763char tgetent (); 6764int 6765main () 6766{ 6767tgetent (); 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772rm -f conftest.$ac_objext conftest$ac_exeext 6773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6774 (eval $ac_link) 2>conftest.er1 6775 ac_status=$? 6776 grep -v '^ *+' conftest.er1 >conftest.err 6777 rm -f conftest.er1 6778 cat conftest.err >&5 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); } && 6781 { ac_try='test -z "$ac_c_werror_flag" 6782 || test ! -s conftest.err' 6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6784 (eval $ac_try) 2>&5 6785 ac_status=$? 6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787 (exit $ac_status); }; } && 6788 { ac_try='test -s conftest$ac_exeext' 6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6790 (eval $ac_try) 2>&5 6791 ac_status=$? 6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6793 (exit $ac_status); }; }; then 6794 ac_cv_lib_ncurses_tgetent=yes 6795else 6796 echo "$as_me: failed program was:" >&5 6797sed 's/^/| /' conftest.$ac_ext >&5 6798 6799ac_cv_lib_ncurses_tgetent=no 6800fi 6801rm -f conftest.err conftest.$ac_objext \ 6802 conftest$ac_exeext conftest.$ac_ext 6803LIBS=$ac_check_lib_save_LIBS 6804fi 6805echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 6806echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 6807if test $ac_cv_lib_ncurses_tgetent = yes; then 6808 bash_cv_termcap_lib=libncurses 6809else 6810 bash_cv_termcap_lib=gnutermcap 6811fi 6812 6813fi 6814 6815fi 6816 6817fi 6818 6819fi 6820 6821fi 6822 6823if test "X$_bash_needmsg" = "Xyes"; then 6824echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 6825echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 6826fi 6827echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 6828echo "${ECHO_T}using $bash_cv_termcap_lib" >&6 6829if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then 6830LDFLAGS="$LDFLAGS -L./lib/termcap" 6831TERMCAP_LIB="./lib/termcap/libtermcap.a" 6832TERMCAP_DEP="./lib/termcap/libtermcap.a" 6833elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then 6834TERMCAP_LIB=-ltermcap 6835TERMCAP_DEP= 6836elif test $bash_cv_termcap_lib = libtinfo; then 6837TERMCAP_LIB=-ltinfo 6838TERMCAP_DEP= 6839elif test $bash_cv_termcap_lib = libncurses; then 6840TERMCAP_LIB=-lncurses 6841TERMCAP_DEP= 6842elif test $bash_cv_termcap_lib = libc; then 6843TERMCAP_LIB= 6844TERMCAP_DEP= 6845else 6846TERMCAP_LIB=-lcurses 6847TERMCAP_DEP= 6848fi 6849 6850if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then 6851 if test "$prefer_curses" = yes; then 6852 TERMCAP_LIB=-lcurses 6853 else 6854 TERMCAP_LIB=-ltermcap #default 6855 fi 6856fi 6857 6858 6859 6860for ac_header in wctype.h 6861do 6862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6863if eval "test \"\${$as_ac_Header+set}\" = set"; then 6864 echo "$as_me:$LINENO: checking for $ac_header" >&5 6865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6866if eval "test \"\${$as_ac_Header+set}\" = set"; then 6867 echo $ECHO_N "(cached) $ECHO_C" >&6 6868fi 6869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6871else 6872 # Is the header compilable? 6873echo "$as_me:$LINENO: checking $ac_header usability" >&5 6874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6875cat >conftest.$ac_ext <<_ACEOF 6876/* confdefs.h. */ 6877_ACEOF 6878cat confdefs.h >>conftest.$ac_ext 6879cat >>conftest.$ac_ext <<_ACEOF 6880/* end confdefs.h. */ 6881$ac_includes_default 6882#include <$ac_header> 6883_ACEOF 6884rm -f conftest.$ac_objext 6885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6886 (eval $ac_compile) 2>conftest.er1 6887 ac_status=$? 6888 grep -v '^ *+' conftest.er1 >conftest.err 6889 rm -f conftest.er1 6890 cat conftest.err >&5 6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6892 (exit $ac_status); } && 6893 { ac_try='test -z "$ac_c_werror_flag" 6894 || test ! -s conftest.err' 6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6896 (eval $ac_try) 2>&5 6897 ac_status=$? 6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6899 (exit $ac_status); }; } && 6900 { ac_try='test -s conftest.$ac_objext' 6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6902 (eval $ac_try) 2>&5 6903 ac_status=$? 6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6905 (exit $ac_status); }; }; then 6906 ac_header_compiler=yes 6907else 6908 echo "$as_me: failed program was:" >&5 6909sed 's/^/| /' conftest.$ac_ext >&5 6910 6911ac_header_compiler=no 6912fi 6913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6915echo "${ECHO_T}$ac_header_compiler" >&6 6916 6917# Is the header present? 6918echo "$as_me:$LINENO: checking $ac_header presence" >&5 6919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6920cat >conftest.$ac_ext <<_ACEOF 6921/* confdefs.h. */ 6922_ACEOF 6923cat confdefs.h >>conftest.$ac_ext 6924cat >>conftest.$ac_ext <<_ACEOF 6925/* end confdefs.h. */ 6926#include <$ac_header> 6927_ACEOF 6928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6930 ac_status=$? 6931 grep -v '^ *+' conftest.er1 >conftest.err 6932 rm -f conftest.er1 6933 cat conftest.err >&5 6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6935 (exit $ac_status); } >/dev/null; then 6936 if test -s conftest.err; then 6937 ac_cpp_err=$ac_c_preproc_warn_flag 6938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6939 else 6940 ac_cpp_err= 6941 fi 6942else 6943 ac_cpp_err=yes 6944fi 6945if test -z "$ac_cpp_err"; then 6946 ac_header_preproc=yes 6947else 6948 echo "$as_me: failed program was:" >&5 6949sed 's/^/| /' conftest.$ac_ext >&5 6950 6951 ac_header_preproc=no 6952fi 6953rm -f conftest.err conftest.$ac_ext 6954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6955echo "${ECHO_T}$ac_header_preproc" >&6 6956 6957# So? What about this header? 6958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6959 yes:no: ) 6960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6964 ac_header_preproc=yes 6965 ;; 6966 no:yes:* ) 6967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6979 ( 6980 cat <<\_ASBOX 6981## ----------------------------------- ## 6982## Report this to bug-readline@gnu.org ## 6983## ----------------------------------- ## 6984_ASBOX 6985 ) | 6986 sed "s/^/$as_me: WARNING: /" >&2 6987 ;; 6988esac 6989echo "$as_me:$LINENO: checking for $ac_header" >&5 6990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6991if eval "test \"\${$as_ac_Header+set}\" = set"; then 6992 echo $ECHO_N "(cached) $ECHO_C" >&6 6993else 6994 eval "$as_ac_Header=\$ac_header_preproc" 6995fi 6996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6998 6999fi 7000if test `eval echo '${'$as_ac_Header'}'` = yes; then 7001 cat >>confdefs.h <<_ACEOF 7002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7003_ACEOF 7004 7005fi 7006 7007done 7008 7009 7010for ac_header in wchar.h 7011do 7012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7013if eval "test \"\${$as_ac_Header+set}\" = set"; then 7014 echo "$as_me:$LINENO: checking for $ac_header" >&5 7015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7016if eval "test \"\${$as_ac_Header+set}\" = set"; then 7017 echo $ECHO_N "(cached) $ECHO_C" >&6 7018fi 7019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7021else 7022 # Is the header compilable? 7023echo "$as_me:$LINENO: checking $ac_header usability" >&5 7024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7025cat >conftest.$ac_ext <<_ACEOF 7026/* confdefs.h. */ 7027_ACEOF 7028cat confdefs.h >>conftest.$ac_ext 7029cat >>conftest.$ac_ext <<_ACEOF 7030/* end confdefs.h. */ 7031$ac_includes_default 7032#include <$ac_header> 7033_ACEOF 7034rm -f conftest.$ac_objext 7035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7036 (eval $ac_compile) 2>conftest.er1 7037 ac_status=$? 7038 grep -v '^ *+' conftest.er1 >conftest.err 7039 rm -f conftest.er1 7040 cat conftest.err >&5 7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7042 (exit $ac_status); } && 7043 { ac_try='test -z "$ac_c_werror_flag" 7044 || test ! -s conftest.err' 7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7046 (eval $ac_try) 2>&5 7047 ac_status=$? 7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7049 (exit $ac_status); }; } && 7050 { ac_try='test -s conftest.$ac_objext' 7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7052 (eval $ac_try) 2>&5 7053 ac_status=$? 7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7055 (exit $ac_status); }; }; then 7056 ac_header_compiler=yes 7057else 7058 echo "$as_me: failed program was:" >&5 7059sed 's/^/| /' conftest.$ac_ext >&5 7060 7061ac_header_compiler=no 7062fi 7063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7065echo "${ECHO_T}$ac_header_compiler" >&6 7066 7067# Is the header present? 7068echo "$as_me:$LINENO: checking $ac_header presence" >&5 7069echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7070cat >conftest.$ac_ext <<_ACEOF 7071/* confdefs.h. */ 7072_ACEOF 7073cat confdefs.h >>conftest.$ac_ext 7074cat >>conftest.$ac_ext <<_ACEOF 7075/* end confdefs.h. */ 7076#include <$ac_header> 7077_ACEOF 7078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7080 ac_status=$? 7081 grep -v '^ *+' conftest.er1 >conftest.err 7082 rm -f conftest.er1 7083 cat conftest.err >&5 7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 (exit $ac_status); } >/dev/null; then 7086 if test -s conftest.err; then 7087 ac_cpp_err=$ac_c_preproc_warn_flag 7088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7089 else 7090 ac_cpp_err= 7091 fi 7092else 7093 ac_cpp_err=yes 7094fi 7095if test -z "$ac_cpp_err"; then 7096 ac_header_preproc=yes 7097else 7098 echo "$as_me: failed program was:" >&5 7099sed 's/^/| /' conftest.$ac_ext >&5 7100 7101 ac_header_preproc=no 7102fi 7103rm -f conftest.err conftest.$ac_ext 7104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7105echo "${ECHO_T}$ac_header_preproc" >&6 7106 7107# So? What about this header? 7108case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7109 yes:no: ) 7110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7111echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7113echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7114 ac_header_preproc=yes 7115 ;; 7116 no:yes:* ) 7117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7118echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7120echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7122echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7124echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7128echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7129 ( 7130 cat <<\_ASBOX 7131## ----------------------------------- ## 7132## Report this to bug-readline@gnu.org ## 7133## ----------------------------------- ## 7134_ASBOX 7135 ) | 7136 sed "s/^/$as_me: WARNING: /" >&2 7137 ;; 7138esac 7139echo "$as_me:$LINENO: checking for $ac_header" >&5 7140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7141if eval "test \"\${$as_ac_Header+set}\" = set"; then 7142 echo $ECHO_N "(cached) $ECHO_C" >&6 7143else 7144 eval "$as_ac_Header=\$ac_header_preproc" 7145fi 7146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7148 7149fi 7150if test `eval echo '${'$as_ac_Header'}'` = yes; then 7151 cat >>confdefs.h <<_ACEOF 7152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7153_ACEOF 7154 7155fi 7156 7157done 7158 7159 7160for ac_header in langinfo.h 7161do 7162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7163if eval "test \"\${$as_ac_Header+set}\" = set"; then 7164 echo "$as_me:$LINENO: checking for $ac_header" >&5 7165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7166if eval "test \"\${$as_ac_Header+set}\" = set"; then 7167 echo $ECHO_N "(cached) $ECHO_C" >&6 7168fi 7169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7171else 7172 # Is the header compilable? 7173echo "$as_me:$LINENO: checking $ac_header usability" >&5 7174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7175cat >conftest.$ac_ext <<_ACEOF 7176/* confdefs.h. */ 7177_ACEOF 7178cat confdefs.h >>conftest.$ac_ext 7179cat >>conftest.$ac_ext <<_ACEOF 7180/* end confdefs.h. */ 7181$ac_includes_default 7182#include <$ac_header> 7183_ACEOF 7184rm -f conftest.$ac_objext 7185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7186 (eval $ac_compile) 2>conftest.er1 7187 ac_status=$? 7188 grep -v '^ *+' conftest.er1 >conftest.err 7189 rm -f conftest.er1 7190 cat conftest.err >&5 7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7192 (exit $ac_status); } && 7193 { ac_try='test -z "$ac_c_werror_flag" 7194 || test ! -s conftest.err' 7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7196 (eval $ac_try) 2>&5 7197 ac_status=$? 7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7199 (exit $ac_status); }; } && 7200 { ac_try='test -s conftest.$ac_objext' 7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7202 (eval $ac_try) 2>&5 7203 ac_status=$? 7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7205 (exit $ac_status); }; }; then 7206 ac_header_compiler=yes 7207else 7208 echo "$as_me: failed program was:" >&5 7209sed 's/^/| /' conftest.$ac_ext >&5 7210 7211ac_header_compiler=no 7212fi 7213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7215echo "${ECHO_T}$ac_header_compiler" >&6 7216 7217# Is the header present? 7218echo "$as_me:$LINENO: checking $ac_header presence" >&5 7219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7220cat >conftest.$ac_ext <<_ACEOF 7221/* confdefs.h. */ 7222_ACEOF 7223cat confdefs.h >>conftest.$ac_ext 7224cat >>conftest.$ac_ext <<_ACEOF 7225/* end confdefs.h. */ 7226#include <$ac_header> 7227_ACEOF 7228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7230 ac_status=$? 7231 grep -v '^ *+' conftest.er1 >conftest.err 7232 rm -f conftest.er1 7233 cat conftest.err >&5 7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7235 (exit $ac_status); } >/dev/null; then 7236 if test -s conftest.err; then 7237 ac_cpp_err=$ac_c_preproc_warn_flag 7238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7239 else 7240 ac_cpp_err= 7241 fi 7242else 7243 ac_cpp_err=yes 7244fi 7245if test -z "$ac_cpp_err"; then 7246 ac_header_preproc=yes 7247else 7248 echo "$as_me: failed program was:" >&5 7249sed 's/^/| /' conftest.$ac_ext >&5 7250 7251 ac_header_preproc=no 7252fi 7253rm -f conftest.err conftest.$ac_ext 7254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7255echo "${ECHO_T}$ac_header_preproc" >&6 7256 7257# So? What about this header? 7258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7259 yes:no: ) 7260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7264 ac_header_preproc=yes 7265 ;; 7266 no:yes:* ) 7267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7279 ( 7280 cat <<\_ASBOX 7281## ----------------------------------- ## 7282## Report this to bug-readline@gnu.org ## 7283## ----------------------------------- ## 7284_ASBOX 7285 ) | 7286 sed "s/^/$as_me: WARNING: /" >&2 7287 ;; 7288esac 7289echo "$as_me:$LINENO: checking for $ac_header" >&5 7290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7291if eval "test \"\${$as_ac_Header+set}\" = set"; then 7292 echo $ECHO_N "(cached) $ECHO_C" >&6 7293else 7294 eval "$as_ac_Header=\$ac_header_preproc" 7295fi 7296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7298 7299fi 7300if test `eval echo '${'$as_ac_Header'}'` = yes; then 7301 cat >>confdefs.h <<_ACEOF 7302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7303_ACEOF 7304 7305fi 7306 7307done 7308 7309 7310echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 7311echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6 7312if test "${ac_cv_func_mbsrtowcs+set}" = set; then 7313 echo $ECHO_N "(cached) $ECHO_C" >&6 7314else 7315 cat >conftest.$ac_ext <<_ACEOF 7316/* confdefs.h. */ 7317_ACEOF 7318cat confdefs.h >>conftest.$ac_ext 7319cat >>conftest.$ac_ext <<_ACEOF 7320/* end confdefs.h. */ 7321/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. 7322 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7323#define mbsrtowcs innocuous_mbsrtowcs 7324 7325/* System header to define __stub macros and hopefully few prototypes, 7326 which can conflict with char mbsrtowcs (); below. 7327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7328 <limits.h> exists even on freestanding compilers. */ 7329 7330#ifdef __STDC__ 7331# include <limits.h> 7332#else 7333# include <assert.h> 7334#endif 7335 7336#undef mbsrtowcs 7337 7338/* Override any gcc2 internal prototype to avoid an error. */ 7339#ifdef __cplusplus 7340extern "C" 7341{ 7342#endif 7343/* We use char because int might match the return type of a gcc2 7344 builtin and then its argument prototype would still apply. */ 7345char mbsrtowcs (); 7346/* The GNU C library defines this for functions which it implements 7347 to always fail with ENOSYS. Some functions are actually named 7348 something starting with __ and the normal name is an alias. */ 7349#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs) 7350choke me 7351#else 7352char (*f) () = mbsrtowcs; 7353#endif 7354#ifdef __cplusplus 7355} 7356#endif 7357 7358int 7359main () 7360{ 7361return f != mbsrtowcs; 7362 ; 7363 return 0; 7364} 7365_ACEOF 7366rm -f conftest.$ac_objext conftest$ac_exeext 7367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7368 (eval $ac_link) 2>conftest.er1 7369 ac_status=$? 7370 grep -v '^ *+' conftest.er1 >conftest.err 7371 rm -f conftest.er1 7372 cat conftest.err >&5 7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7374 (exit $ac_status); } && 7375 { ac_try='test -z "$ac_c_werror_flag" 7376 || test ! -s conftest.err' 7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7378 (eval $ac_try) 2>&5 7379 ac_status=$? 7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7381 (exit $ac_status); }; } && 7382 { ac_try='test -s conftest$ac_exeext' 7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7384 (eval $ac_try) 2>&5 7385 ac_status=$? 7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7387 (exit $ac_status); }; }; then 7388 ac_cv_func_mbsrtowcs=yes 7389else 7390 echo "$as_me: failed program was:" >&5 7391sed 's/^/| /' conftest.$ac_ext >&5 7392 7393ac_cv_func_mbsrtowcs=no 7394fi 7395rm -f conftest.err conftest.$ac_objext \ 7396 conftest$ac_exeext conftest.$ac_ext 7397fi 7398echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 7399echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6 7400if test $ac_cv_func_mbsrtowcs = yes; then 7401 cat >>confdefs.h <<\_ACEOF 7402#define HAVE_MBSRTOWCS 1 7403_ACEOF 7404 7405fi 7406 7407echo "$as_me:$LINENO: checking for mbrlen" >&5 7408echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6 7409if test "${ac_cv_func_mbrlen+set}" = set; then 7410 echo $ECHO_N "(cached) $ECHO_C" >&6 7411else 7412 cat >conftest.$ac_ext <<_ACEOF 7413/* confdefs.h. */ 7414_ACEOF 7415cat confdefs.h >>conftest.$ac_ext 7416cat >>conftest.$ac_ext <<_ACEOF 7417/* end confdefs.h. */ 7418/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen. 7419 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7420#define mbrlen innocuous_mbrlen 7421 7422/* System header to define __stub macros and hopefully few prototypes, 7423 which can conflict with char mbrlen (); below. 7424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7425 <limits.h> exists even on freestanding compilers. */ 7426 7427#ifdef __STDC__ 7428# include <limits.h> 7429#else 7430# include <assert.h> 7431#endif 7432 7433#undef mbrlen 7434 7435/* Override any gcc2 internal prototype to avoid an error. */ 7436#ifdef __cplusplus 7437extern "C" 7438{ 7439#endif 7440/* We use char because int might match the return type of a gcc2 7441 builtin and then its argument prototype would still apply. */ 7442char mbrlen (); 7443/* The GNU C library defines this for functions which it implements 7444 to always fail with ENOSYS. Some functions are actually named 7445 something starting with __ and the normal name is an alias. */ 7446#if defined (__stub_mbrlen) || defined (__stub___mbrlen) 7447choke me 7448#else 7449char (*f) () = mbrlen; 7450#endif 7451#ifdef __cplusplus 7452} 7453#endif 7454 7455int 7456main () 7457{ 7458return f != mbrlen; 7459 ; 7460 return 0; 7461} 7462_ACEOF 7463rm -f conftest.$ac_objext conftest$ac_exeext 7464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7465 (eval $ac_link) 2>conftest.er1 7466 ac_status=$? 7467 grep -v '^ *+' conftest.er1 >conftest.err 7468 rm -f conftest.er1 7469 cat conftest.err >&5 7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7471 (exit $ac_status); } && 7472 { ac_try='test -z "$ac_c_werror_flag" 7473 || test ! -s conftest.err' 7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7475 (eval $ac_try) 2>&5 7476 ac_status=$? 7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7478 (exit $ac_status); }; } && 7479 { ac_try='test -s conftest$ac_exeext' 7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7481 (eval $ac_try) 2>&5 7482 ac_status=$? 7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7484 (exit $ac_status); }; }; then 7485 ac_cv_func_mbrlen=yes 7486else 7487 echo "$as_me: failed program was:" >&5 7488sed 's/^/| /' conftest.$ac_ext >&5 7489 7490ac_cv_func_mbrlen=no 7491fi 7492rm -f conftest.err conftest.$ac_objext \ 7493 conftest$ac_exeext conftest.$ac_ext 7494fi 7495echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5 7496echo "${ECHO_T}$ac_cv_func_mbrlen" >&6 7497if test $ac_cv_func_mbrlen = yes; then 7498 cat >>confdefs.h <<\_ACEOF 7499#define HAVE_MBRLEN 1 7500_ACEOF 7501 7502fi 7503 7504 7505echo "$as_me:$LINENO: checking for wcrtomb" >&5 7506echo $ECHO_N "checking for wcrtomb... $ECHO_C" >&6 7507if test "${ac_cv_func_wcrtomb+set}" = set; then 7508 echo $ECHO_N "(cached) $ECHO_C" >&6 7509else 7510 cat >conftest.$ac_ext <<_ACEOF 7511/* confdefs.h. */ 7512_ACEOF 7513cat confdefs.h >>conftest.$ac_ext 7514cat >>conftest.$ac_ext <<_ACEOF 7515/* end confdefs.h. */ 7516/* Define wcrtomb to an innocuous variant, in case <limits.h> declares wcrtomb. 7517 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7518#define wcrtomb innocuous_wcrtomb 7519 7520/* System header to define __stub macros and hopefully few prototypes, 7521 which can conflict with char wcrtomb (); below. 7522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7523 <limits.h> exists even on freestanding compilers. */ 7524 7525#ifdef __STDC__ 7526# include <limits.h> 7527#else 7528# include <assert.h> 7529#endif 7530 7531#undef wcrtomb 7532 7533/* Override any gcc2 internal prototype to avoid an error. */ 7534#ifdef __cplusplus 7535extern "C" 7536{ 7537#endif 7538/* We use char because int might match the return type of a gcc2 7539 builtin and then its argument prototype would still apply. */ 7540char wcrtomb (); 7541/* The GNU C library defines this for functions which it implements 7542 to always fail with ENOSYS. Some functions are actually named 7543 something starting with __ and the normal name is an alias. */ 7544#if defined (__stub_wcrtomb) || defined (__stub___wcrtomb) 7545choke me 7546#else 7547char (*f) () = wcrtomb; 7548#endif 7549#ifdef __cplusplus 7550} 7551#endif 7552 7553int 7554main () 7555{ 7556return f != wcrtomb; 7557 ; 7558 return 0; 7559} 7560_ACEOF 7561rm -f conftest.$ac_objext conftest$ac_exeext 7562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7563 (eval $ac_link) 2>conftest.er1 7564 ac_status=$? 7565 grep -v '^ *+' conftest.er1 >conftest.err 7566 rm -f conftest.er1 7567 cat conftest.err >&5 7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7569 (exit $ac_status); } && 7570 { ac_try='test -z "$ac_c_werror_flag" 7571 || test ! -s conftest.err' 7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7573 (eval $ac_try) 2>&5 7574 ac_status=$? 7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7576 (exit $ac_status); }; } && 7577 { ac_try='test -s conftest$ac_exeext' 7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7579 (eval $ac_try) 2>&5 7580 ac_status=$? 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); }; }; then 7583 ac_cv_func_wcrtomb=yes 7584else 7585 echo "$as_me: failed program was:" >&5 7586sed 's/^/| /' conftest.$ac_ext >&5 7587 7588ac_cv_func_wcrtomb=no 7589fi 7590rm -f conftest.err conftest.$ac_objext \ 7591 conftest$ac_exeext conftest.$ac_ext 7592fi 7593echo "$as_me:$LINENO: result: $ac_cv_func_wcrtomb" >&5 7594echo "${ECHO_T}$ac_cv_func_wcrtomb" >&6 7595if test $ac_cv_func_wcrtomb = yes; then 7596 cat >>confdefs.h <<\_ACEOF 7597#define HAVE_WCRTOMB 1 7598_ACEOF 7599 7600fi 7601 7602echo "$as_me:$LINENO: checking for wcscoll" >&5 7603echo $ECHO_N "checking for wcscoll... $ECHO_C" >&6 7604if test "${ac_cv_func_wcscoll+set}" = set; then 7605 echo $ECHO_N "(cached) $ECHO_C" >&6 7606else 7607 cat >conftest.$ac_ext <<_ACEOF 7608/* confdefs.h. */ 7609_ACEOF 7610cat confdefs.h >>conftest.$ac_ext 7611cat >>conftest.$ac_ext <<_ACEOF 7612/* end confdefs.h. */ 7613/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll. 7614 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7615#define wcscoll innocuous_wcscoll 7616 7617/* System header to define __stub macros and hopefully few prototypes, 7618 which can conflict with char wcscoll (); below. 7619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7620 <limits.h> exists even on freestanding compilers. */ 7621 7622#ifdef __STDC__ 7623# include <limits.h> 7624#else 7625# include <assert.h> 7626#endif 7627 7628#undef wcscoll 7629 7630/* Override any gcc2 internal prototype to avoid an error. */ 7631#ifdef __cplusplus 7632extern "C" 7633{ 7634#endif 7635/* We use char because int might match the return type of a gcc2 7636 builtin and then its argument prototype would still apply. */ 7637char wcscoll (); 7638/* The GNU C library defines this for functions which it implements 7639 to always fail with ENOSYS. Some functions are actually named 7640 something starting with __ and the normal name is an alias. */ 7641#if defined (__stub_wcscoll) || defined (__stub___wcscoll) 7642choke me 7643#else 7644char (*f) () = wcscoll; 7645#endif 7646#ifdef __cplusplus 7647} 7648#endif 7649 7650int 7651main () 7652{ 7653return f != wcscoll; 7654 ; 7655 return 0; 7656} 7657_ACEOF 7658rm -f conftest.$ac_objext conftest$ac_exeext 7659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7660 (eval $ac_link) 2>conftest.er1 7661 ac_status=$? 7662 grep -v '^ *+' conftest.er1 >conftest.err 7663 rm -f conftest.er1 7664 cat conftest.err >&5 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7666 (exit $ac_status); } && 7667 { ac_try='test -z "$ac_c_werror_flag" 7668 || test ! -s conftest.err' 7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7670 (eval $ac_try) 2>&5 7671 ac_status=$? 7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7673 (exit $ac_status); }; } && 7674 { ac_try='test -s conftest$ac_exeext' 7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7676 (eval $ac_try) 2>&5 7677 ac_status=$? 7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7679 (exit $ac_status); }; }; then 7680 ac_cv_func_wcscoll=yes 7681else 7682 echo "$as_me: failed program was:" >&5 7683sed 's/^/| /' conftest.$ac_ext >&5 7684 7685ac_cv_func_wcscoll=no 7686fi 7687rm -f conftest.err conftest.$ac_objext \ 7688 conftest$ac_exeext conftest.$ac_ext 7689fi 7690echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5 7691echo "${ECHO_T}$ac_cv_func_wcscoll" >&6 7692if test $ac_cv_func_wcscoll = yes; then 7693 cat >>confdefs.h <<\_ACEOF 7694#define HAVE_WCSCOLL 1 7695_ACEOF 7696 7697fi 7698 7699echo "$as_me:$LINENO: checking for wcsdup" >&5 7700echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6 7701if test "${ac_cv_func_wcsdup+set}" = set; then 7702 echo $ECHO_N "(cached) $ECHO_C" >&6 7703else 7704 cat >conftest.$ac_ext <<_ACEOF 7705/* confdefs.h. */ 7706_ACEOF 7707cat confdefs.h >>conftest.$ac_ext 7708cat >>conftest.$ac_ext <<_ACEOF 7709/* end confdefs.h. */ 7710/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup. 7711 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7712#define wcsdup innocuous_wcsdup 7713 7714/* System header to define __stub macros and hopefully few prototypes, 7715 which can conflict with char wcsdup (); below. 7716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7717 <limits.h> exists even on freestanding compilers. */ 7718 7719#ifdef __STDC__ 7720# include <limits.h> 7721#else 7722# include <assert.h> 7723#endif 7724 7725#undef wcsdup 7726 7727/* Override any gcc2 internal prototype to avoid an error. */ 7728#ifdef __cplusplus 7729extern "C" 7730{ 7731#endif 7732/* We use char because int might match the return type of a gcc2 7733 builtin and then its argument prototype would still apply. */ 7734char wcsdup (); 7735/* The GNU C library defines this for functions which it implements 7736 to always fail with ENOSYS. Some functions are actually named 7737 something starting with __ and the normal name is an alias. */ 7738#if defined (__stub_wcsdup) || defined (__stub___wcsdup) 7739choke me 7740#else 7741char (*f) () = wcsdup; 7742#endif 7743#ifdef __cplusplus 7744} 7745#endif 7746 7747int 7748main () 7749{ 7750return f != wcsdup; 7751 ; 7752 return 0; 7753} 7754_ACEOF 7755rm -f conftest.$ac_objext conftest$ac_exeext 7756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7757 (eval $ac_link) 2>conftest.er1 7758 ac_status=$? 7759 grep -v '^ *+' conftest.er1 >conftest.err 7760 rm -f conftest.er1 7761 cat conftest.err >&5 7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7763 (exit $ac_status); } && 7764 { ac_try='test -z "$ac_c_werror_flag" 7765 || test ! -s conftest.err' 7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7767 (eval $ac_try) 2>&5 7768 ac_status=$? 7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7770 (exit $ac_status); }; } && 7771 { ac_try='test -s conftest$ac_exeext' 7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7773 (eval $ac_try) 2>&5 7774 ac_status=$? 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); }; }; then 7777 ac_cv_func_wcsdup=yes 7778else 7779 echo "$as_me: failed program was:" >&5 7780sed 's/^/| /' conftest.$ac_ext >&5 7781 7782ac_cv_func_wcsdup=no 7783fi 7784rm -f conftest.err conftest.$ac_objext \ 7785 conftest$ac_exeext conftest.$ac_ext 7786fi 7787echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5 7788echo "${ECHO_T}$ac_cv_func_wcsdup" >&6 7789if test $ac_cv_func_wcsdup = yes; then 7790 cat >>confdefs.h <<\_ACEOF 7791#define HAVE_WCSDUP 1 7792_ACEOF 7793 7794fi 7795 7796echo "$as_me:$LINENO: checking for wcwidth" >&5 7797echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6 7798if test "${ac_cv_func_wcwidth+set}" = set; then 7799 echo $ECHO_N "(cached) $ECHO_C" >&6 7800else 7801 cat >conftest.$ac_ext <<_ACEOF 7802/* confdefs.h. */ 7803_ACEOF 7804cat confdefs.h >>conftest.$ac_ext 7805cat >>conftest.$ac_ext <<_ACEOF 7806/* end confdefs.h. */ 7807/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. 7808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7809#define wcwidth innocuous_wcwidth 7810 7811/* System header to define __stub macros and hopefully few prototypes, 7812 which can conflict with char wcwidth (); below. 7813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7814 <limits.h> exists even on freestanding compilers. */ 7815 7816#ifdef __STDC__ 7817# include <limits.h> 7818#else 7819# include <assert.h> 7820#endif 7821 7822#undef wcwidth 7823 7824/* Override any gcc2 internal prototype to avoid an error. */ 7825#ifdef __cplusplus 7826extern "C" 7827{ 7828#endif 7829/* We use char because int might match the return type of a gcc2 7830 builtin and then its argument prototype would still apply. */ 7831char wcwidth (); 7832/* The GNU C library defines this for functions which it implements 7833 to always fail with ENOSYS. Some functions are actually named 7834 something starting with __ and the normal name is an alias. */ 7835#if defined (__stub_wcwidth) || defined (__stub___wcwidth) 7836choke me 7837#else 7838char (*f) () = wcwidth; 7839#endif 7840#ifdef __cplusplus 7841} 7842#endif 7843 7844int 7845main () 7846{ 7847return f != wcwidth; 7848 ; 7849 return 0; 7850} 7851_ACEOF 7852rm -f conftest.$ac_objext conftest$ac_exeext 7853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7854 (eval $ac_link) 2>conftest.er1 7855 ac_status=$? 7856 grep -v '^ *+' conftest.er1 >conftest.err 7857 rm -f conftest.er1 7858 cat conftest.err >&5 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7860 (exit $ac_status); } && 7861 { ac_try='test -z "$ac_c_werror_flag" 7862 || test ! -s conftest.err' 7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7864 (eval $ac_try) 2>&5 7865 ac_status=$? 7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7867 (exit $ac_status); }; } && 7868 { ac_try='test -s conftest$ac_exeext' 7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7870 (eval $ac_try) 2>&5 7871 ac_status=$? 7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7873 (exit $ac_status); }; }; then 7874 ac_cv_func_wcwidth=yes 7875else 7876 echo "$as_me: failed program was:" >&5 7877sed 's/^/| /' conftest.$ac_ext >&5 7878 7879ac_cv_func_wcwidth=no 7880fi 7881rm -f conftest.err conftest.$ac_objext \ 7882 conftest$ac_exeext conftest.$ac_ext 7883fi 7884echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 7885echo "${ECHO_T}$ac_cv_func_wcwidth" >&6 7886if test $ac_cv_func_wcwidth = yes; then 7887 cat >>confdefs.h <<\_ACEOF 7888#define HAVE_WCWIDTH 1 7889_ACEOF 7890 7891fi 7892 7893echo "$as_me:$LINENO: checking for wctype" >&5 7894echo $ECHO_N "checking for wctype... $ECHO_C" >&6 7895if test "${ac_cv_func_wctype+set}" = set; then 7896 echo $ECHO_N "(cached) $ECHO_C" >&6 7897else 7898 cat >conftest.$ac_ext <<_ACEOF 7899/* confdefs.h. */ 7900_ACEOF 7901cat confdefs.h >>conftest.$ac_ext 7902cat >>conftest.$ac_ext <<_ACEOF 7903/* end confdefs.h. */ 7904/* Define wctype to an innocuous variant, in case <limits.h> declares wctype. 7905 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7906#define wctype innocuous_wctype 7907 7908/* System header to define __stub macros and hopefully few prototypes, 7909 which can conflict with char wctype (); below. 7910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7911 <limits.h> exists even on freestanding compilers. */ 7912 7913#ifdef __STDC__ 7914# include <limits.h> 7915#else 7916# include <assert.h> 7917#endif 7918 7919#undef wctype 7920 7921/* Override any gcc2 internal prototype to avoid an error. */ 7922#ifdef __cplusplus 7923extern "C" 7924{ 7925#endif 7926/* We use char because int might match the return type of a gcc2 7927 builtin and then its argument prototype would still apply. */ 7928char wctype (); 7929/* The GNU C library defines this for functions which it implements 7930 to always fail with ENOSYS. Some functions are actually named 7931 something starting with __ and the normal name is an alias. */ 7932#if defined (__stub_wctype) || defined (__stub___wctype) 7933choke me 7934#else 7935char (*f) () = wctype; 7936#endif 7937#ifdef __cplusplus 7938} 7939#endif 7940 7941int 7942main () 7943{ 7944return f != wctype; 7945 ; 7946 return 0; 7947} 7948_ACEOF 7949rm -f conftest.$ac_objext conftest$ac_exeext 7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7951 (eval $ac_link) 2>conftest.er1 7952 ac_status=$? 7953 grep -v '^ *+' conftest.er1 >conftest.err 7954 rm -f conftest.er1 7955 cat conftest.err >&5 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); } && 7958 { ac_try='test -z "$ac_c_werror_flag" 7959 || test ! -s conftest.err' 7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7961 (eval $ac_try) 2>&5 7962 ac_status=$? 7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7964 (exit $ac_status); }; } && 7965 { ac_try='test -s conftest$ac_exeext' 7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7967 (eval $ac_try) 2>&5 7968 ac_status=$? 7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7970 (exit $ac_status); }; }; then 7971 ac_cv_func_wctype=yes 7972else 7973 echo "$as_me: failed program was:" >&5 7974sed 's/^/| /' conftest.$ac_ext >&5 7975 7976ac_cv_func_wctype=no 7977fi 7978rm -f conftest.err conftest.$ac_objext \ 7979 conftest$ac_exeext conftest.$ac_ext 7980fi 7981echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 7982echo "${ECHO_T}$ac_cv_func_wctype" >&6 7983if test $ac_cv_func_wctype = yes; then 7984 cat >>confdefs.h <<\_ACEOF 7985#define HAVE_WCTYPE 1 7986_ACEOF 7987 7988fi 7989 7990 7991 7992 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 7993echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6 7994if test "${ac_cv_func_mbrtowc+set}" = set; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996else 7997 cat >conftest.$ac_ext <<_ACEOF 7998/* confdefs.h. */ 7999_ACEOF 8000cat confdefs.h >>conftest.$ac_ext 8001cat >>conftest.$ac_ext <<_ACEOF 8002/* end confdefs.h. */ 8003#include <wchar.h> 8004int 8005main () 8006{ 8007mbstate_t state; return ! (sizeof state && mbrtowc); 8008 ; 8009 return 0; 8010} 8011_ACEOF 8012rm -f conftest.$ac_objext conftest$ac_exeext 8013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8014 (eval $ac_link) 2>conftest.er1 8015 ac_status=$? 8016 grep -v '^ *+' conftest.er1 >conftest.err 8017 rm -f conftest.er1 8018 cat conftest.err >&5 8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8020 (exit $ac_status); } && 8021 { ac_try='test -z "$ac_c_werror_flag" 8022 || test ! -s conftest.err' 8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8024 (eval $ac_try) 2>&5 8025 ac_status=$? 8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8027 (exit $ac_status); }; } && 8028 { ac_try='test -s conftest$ac_exeext' 8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8030 (eval $ac_try) 2>&5 8031 ac_status=$? 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8033 (exit $ac_status); }; }; then 8034 ac_cv_func_mbrtowc=yes 8035else 8036 echo "$as_me: failed program was:" >&5 8037sed 's/^/| /' conftest.$ac_ext >&5 8038 8039ac_cv_func_mbrtowc=no 8040fi 8041rm -f conftest.err conftest.$ac_objext \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 8045echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6 8046 if test $ac_cv_func_mbrtowc = yes; then 8047 8048cat >>confdefs.h <<\_ACEOF 8049#define HAVE_MBRTOWC 1 8050_ACEOF 8051 8052 fi 8053 8054if test $ac_cv_func_mbrtowc = yes; then 8055 cat >>confdefs.h <<\_ACEOF 8056#define HAVE_MBSTATE_T 1 8057_ACEOF 8058 8059fi 8060 8061 8062 8063 8064 8065 8066for ac_func in iswlower iswupper towlower towupper iswctype 8067do 8068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8069echo "$as_me:$LINENO: checking for $ac_func" >&5 8070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8071if eval "test \"\${$as_ac_var+set}\" = set"; then 8072 echo $ECHO_N "(cached) $ECHO_C" >&6 8073else 8074 cat >conftest.$ac_ext <<_ACEOF 8075/* confdefs.h. */ 8076_ACEOF 8077cat confdefs.h >>conftest.$ac_ext 8078cat >>conftest.$ac_ext <<_ACEOF 8079/* end confdefs.h. */ 8080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8081 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8082#define $ac_func innocuous_$ac_func 8083 8084/* System header to define __stub macros and hopefully few prototypes, 8085 which can conflict with char $ac_func (); below. 8086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8087 <limits.h> exists even on freestanding compilers. */ 8088 8089#ifdef __STDC__ 8090# include <limits.h> 8091#else 8092# include <assert.h> 8093#endif 8094 8095#undef $ac_func 8096 8097/* Override any gcc2 internal prototype to avoid an error. */ 8098#ifdef __cplusplus 8099extern "C" 8100{ 8101#endif 8102/* We use char because int might match the return type of a gcc2 8103 builtin and then its argument prototype would still apply. */ 8104char $ac_func (); 8105/* The GNU C library defines this for functions which it implements 8106 to always fail with ENOSYS. Some functions are actually named 8107 something starting with __ and the normal name is an alias. */ 8108#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8109choke me 8110#else 8111char (*f) () = $ac_func; 8112#endif 8113#ifdef __cplusplus 8114} 8115#endif 8116 8117int 8118main () 8119{ 8120return f != $ac_func; 8121 ; 8122 return 0; 8123} 8124_ACEOF 8125rm -f conftest.$ac_objext conftest$ac_exeext 8126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8127 (eval $ac_link) 2>conftest.er1 8128 ac_status=$? 8129 grep -v '^ *+' conftest.er1 >conftest.err 8130 rm -f conftest.er1 8131 cat conftest.err >&5 8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 (exit $ac_status); } && 8134 { ac_try='test -z "$ac_c_werror_flag" 8135 || test ! -s conftest.err' 8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8137 (eval $ac_try) 2>&5 8138 ac_status=$? 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8140 (exit $ac_status); }; } && 8141 { ac_try='test -s conftest$ac_exeext' 8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8143 (eval $ac_try) 2>&5 8144 ac_status=$? 8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8146 (exit $ac_status); }; }; then 8147 eval "$as_ac_var=yes" 8148else 8149 echo "$as_me: failed program was:" >&5 8150sed 's/^/| /' conftest.$ac_ext >&5 8151 8152eval "$as_ac_var=no" 8153fi 8154rm -f conftest.err conftest.$ac_objext \ 8155 conftest$ac_exeext conftest.$ac_ext 8156fi 8157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8159if test `eval echo '${'$as_ac_var'}'` = yes; then 8160 cat >>confdefs.h <<_ACEOF 8161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8162_ACEOF 8163 8164fi 8165done 8166 8167 8168echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 8169echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 8170if test "${bash_cv_langinfo_codeset+set}" = set; then 8171 echo $ECHO_N "(cached) $ECHO_C" >&6 8172else 8173 cat >conftest.$ac_ext <<_ACEOF 8174/* confdefs.h. */ 8175_ACEOF 8176cat confdefs.h >>conftest.$ac_ext 8177cat >>conftest.$ac_ext <<_ACEOF 8178/* end confdefs.h. */ 8179#include <langinfo.h> 8180int 8181main () 8182{ 8183char* cs = nl_langinfo(CODESET); 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188rm -f conftest.$ac_objext conftest$ac_exeext 8189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8190 (eval $ac_link) 2>conftest.er1 8191 ac_status=$? 8192 grep -v '^ *+' conftest.er1 >conftest.err 8193 rm -f conftest.er1 8194 cat conftest.err >&5 8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8196 (exit $ac_status); } && 8197 { ac_try='test -z "$ac_c_werror_flag" 8198 || test ! -s conftest.err' 8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8200 (eval $ac_try) 2>&5 8201 ac_status=$? 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 (exit $ac_status); }; } && 8204 { ac_try='test -s conftest$ac_exeext' 8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8206 (eval $ac_try) 2>&5 8207 ac_status=$? 8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8209 (exit $ac_status); }; }; then 8210 bash_cv_langinfo_codeset=yes 8211else 8212 echo "$as_me: failed program was:" >&5 8213sed 's/^/| /' conftest.$ac_ext >&5 8214 8215bash_cv_langinfo_codeset=no 8216fi 8217rm -f conftest.err conftest.$ac_objext \ 8218 conftest$ac_exeext conftest.$ac_ext 8219fi 8220echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 8221echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6 8222if test $bash_cv_langinfo_codeset = yes; then 8223 cat >>confdefs.h <<\_ACEOF 8224#define HAVE_LANGINFO_CODESET 1 8225_ACEOF 8226 8227fi 8228 8229echo "$as_me:$LINENO: checking for wchar_t in wchar.h" >&5 8230echo $ECHO_N "checking for wchar_t in wchar.h... $ECHO_C" >&6 8231if test "${bash_cv_type_wchar_t+set}" = set; then 8232 echo $ECHO_N "(cached) $ECHO_C" >&6 8233else 8234 cat >conftest.$ac_ext <<_ACEOF 8235/* confdefs.h. */ 8236_ACEOF 8237cat confdefs.h >>conftest.$ac_ext 8238cat >>conftest.$ac_ext <<_ACEOF 8239/* end confdefs.h. */ 8240#include <wchar.h> 8241 8242int 8243main () 8244{ 8245 8246 wchar_t foo; 8247 foo = 0; 8248 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253rm -f conftest.$ac_objext 8254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8255 (eval $ac_compile) 2>conftest.er1 8256 ac_status=$? 8257 grep -v '^ *+' conftest.er1 >conftest.err 8258 rm -f conftest.er1 8259 cat conftest.err >&5 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 (exit $ac_status); } && 8262 { ac_try='test -z "$ac_c_werror_flag" 8263 || test ! -s conftest.err' 8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8265 (eval $ac_try) 2>&5 8266 ac_status=$? 8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8268 (exit $ac_status); }; } && 8269 { ac_try='test -s conftest.$ac_objext' 8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8271 (eval $ac_try) 2>&5 8272 ac_status=$? 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8274 (exit $ac_status); }; }; then 8275 bash_cv_type_wchar_t=yes 8276else 8277 echo "$as_me: failed program was:" >&5 8278sed 's/^/| /' conftest.$ac_ext >&5 8279 8280bash_cv_type_wchar_t=no 8281fi 8282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8283fi 8284echo "$as_me:$LINENO: result: $bash_cv_type_wchar_t" >&5 8285echo "${ECHO_T}$bash_cv_type_wchar_t" >&6 8286if test $bash_cv_type_wchar_t = yes; then 8287 8288cat >>confdefs.h <<\_ACEOF 8289#define HAVE_WCHAR_T 1 8290_ACEOF 8291 8292fi 8293 8294echo "$as_me:$LINENO: checking for wctype_t in wctype.h" >&5 8295echo $ECHO_N "checking for wctype_t in wctype.h... $ECHO_C" >&6 8296if test "${bash_cv_type_wctype_t+set}" = set; then 8297 echo $ECHO_N "(cached) $ECHO_C" >&6 8298else 8299 cat >conftest.$ac_ext <<_ACEOF 8300/* confdefs.h. */ 8301_ACEOF 8302cat confdefs.h >>conftest.$ac_ext 8303cat >>conftest.$ac_ext <<_ACEOF 8304/* end confdefs.h. */ 8305#include <wctype.h> 8306int 8307main () 8308{ 8309 8310 wctype_t foo; 8311 foo = 0; 8312 8313 ; 8314 return 0; 8315} 8316_ACEOF 8317rm -f conftest.$ac_objext 8318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8319 (eval $ac_compile) 2>conftest.er1 8320 ac_status=$? 8321 grep -v '^ *+' conftest.er1 >conftest.err 8322 rm -f conftest.er1 8323 cat conftest.err >&5 8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8325 (exit $ac_status); } && 8326 { ac_try='test -z "$ac_c_werror_flag" 8327 || test ! -s conftest.err' 8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8329 (eval $ac_try) 2>&5 8330 ac_status=$? 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 (exit $ac_status); }; } && 8333 { ac_try='test -s conftest.$ac_objext' 8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8335 (eval $ac_try) 2>&5 8336 ac_status=$? 8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8338 (exit $ac_status); }; }; then 8339 bash_cv_type_wctype_t=yes 8340else 8341 echo "$as_me: failed program was:" >&5 8342sed 's/^/| /' conftest.$ac_ext >&5 8343 8344bash_cv_type_wctype_t=no 8345fi 8346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8347fi 8348echo "$as_me:$LINENO: result: $bash_cv_type_wctype_t" >&5 8349echo "${ECHO_T}$bash_cv_type_wctype_t" >&6 8350if test $bash_cv_type_wctype_t = yes; then 8351 8352cat >>confdefs.h <<\_ACEOF 8353#define HAVE_WCTYPE_T 1 8354_ACEOF 8355 8356fi 8357 8358echo "$as_me:$LINENO: checking for wint_t in wctype.h" >&5 8359echo $ECHO_N "checking for wint_t in wctype.h... $ECHO_C" >&6 8360if test "${bash_cv_type_wint_t+set}" = set; then 8361 echo $ECHO_N "(cached) $ECHO_C" >&6 8362else 8363 cat >conftest.$ac_ext <<_ACEOF 8364/* confdefs.h. */ 8365_ACEOF 8366cat confdefs.h >>conftest.$ac_ext 8367cat >>conftest.$ac_ext <<_ACEOF 8368/* end confdefs.h. */ 8369#include <wctype.h> 8370int 8371main () 8372{ 8373 8374 wint_t foo; 8375 foo = 0; 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381rm -f conftest.$ac_objext 8382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8383 (eval $ac_compile) 2>conftest.er1 8384 ac_status=$? 8385 grep -v '^ *+' conftest.er1 >conftest.err 8386 rm -f conftest.er1 8387 cat conftest.err >&5 8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8389 (exit $ac_status); } && 8390 { ac_try='test -z "$ac_c_werror_flag" 8391 || test ! -s conftest.err' 8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8393 (eval $ac_try) 2>&5 8394 ac_status=$? 8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 (exit $ac_status); }; } && 8397 { ac_try='test -s conftest.$ac_objext' 8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8399 (eval $ac_try) 2>&5 8400 ac_status=$? 8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8402 (exit $ac_status); }; }; then 8403 bash_cv_type_wint_t=yes 8404else 8405 echo "$as_me: failed program was:" >&5 8406sed 's/^/| /' conftest.$ac_ext >&5 8407 8408bash_cv_type_wint_t=no 8409fi 8410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8411fi 8412echo "$as_me:$LINENO: result: $bash_cv_type_wint_t" >&5 8413echo "${ECHO_T}$bash_cv_type_wint_t" >&6 8414if test $bash_cv_type_wint_t = yes; then 8415 8416cat >>confdefs.h <<\_ACEOF 8417#define HAVE_WINT_T 1 8418_ACEOF 8419 8420fi 8421 8422 8423 8424case "$host_cpu" in 8425*cray*) LOCAL_CFLAGS=-DCRAY ;; 8426*s390*) LOCAL_CFLAGS=-fsigned-char ;; 8427esac 8428 8429case "$host_os" in 8430isc*) LOCAL_CFLAGS=-Disc386 ;; 8431esac 8432 8433# shared library configuration section 8434# 8435# Shared object configuration section. These values are generated by 8436# ${srcdir}/support/shobj-conf 8437# 8438if test -f ${srcdir}/support/shobj-conf; then 8439 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5 8440echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6 8441 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` 8442 8443# case "$SHLIB_LIBS" in 8444# *curses*|*termcap*|*termlib*) ;; 8445# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;; 8446# esac 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5 8464echo "${ECHO_T}$SHLIB_STATUS" >&6 8465 8466 # SHLIB_STATUS is either `supported' or `unsupported'. If it's 8467 # `unsupported', turn off any default shared library building 8468 if test "$SHLIB_STATUS" = 'unsupported'; then 8469 opt_shared_libs=no 8470 fi 8471 8472 # shared library versioning 8473 # quoted for m4 so I can use character classes 8474 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` 8475 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` 8476 8477 8478fi 8479 8480if test "$opt_static_libs" = "yes"; then 8481 STATIC_TARGET=static 8482 STATIC_INSTALL_TARGET=install-static 8483fi 8484if test "$opt_shared_libs" = "yes"; then 8485 SHARED_TARGET=shared 8486 SHARED_INSTALL_TARGET=install-shared 8487fi 8488 8489 8490 8491 8492 8493 8494case "$host_os" in 8495msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file 8496*) BUILD_DIR=`pwd` ;; 8497esac 8498 8499case "$BUILD_DIR" in 8500*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;; 8501*) ;; 8502esac 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" 8523 ac_config_commands="$ac_config_commands default" 8524cat >confcache <<\_ACEOF 8525# This file is a shell script that caches the results of configure 8526# tests run on this system so they can be shared between configure 8527# scripts and configure runs, see configure's option --config-cache. 8528# It is not useful on other systems. If it contains results you don't 8529# want to keep, you may remove or edit it. 8530# 8531# config.status only pays attention to the cache file if you give it 8532# the --recheck option to rerun configure. 8533# 8534# `ac_cv_env_foo' variables (set or unset) will be overridden when 8535# loading this file, other *unset* `ac_cv_foo' will be assigned the 8536# following values. 8537 8538_ACEOF 8539 8540# The following way of writing the cache mishandles newlines in values, 8541# but we know of no workaround that is simple, portable, and efficient. 8542# So, don't put newlines in cache variables' values. 8543# Ultrix sh set writes to stderr and can't be redirected directly, 8544# and sets the high bit in the cache file unless we assign to the vars. 8545{ 8546 (set) 2>&1 | 8547 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8548 *ac_space=\ *) 8549 # `set' does not quote correctly, so add quotes (double-quote 8550 # substitution turns \\\\ into \\, and sed turns \\ into \). 8551 sed -n \ 8552 "s/'/'\\\\''/g; 8553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8554 ;; 8555 *) 8556 # `set' quotes correctly as required by POSIX, so do not add quotes. 8557 sed -n \ 8558 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8559 ;; 8560 esac; 8561} | 8562 sed ' 8563 t clear 8564 : clear 8565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8566 t end 8567 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8568 : end' >>confcache 8569if diff $cache_file confcache >/dev/null 2>&1; then :; else 8570 if test -w $cache_file; then 8571 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8572 cat confcache >$cache_file 8573 else 8574 echo "not updating unwritable cache $cache_file" 8575 fi 8576fi 8577rm -f confcache 8578 8579test "x$prefix" = xNONE && prefix=$ac_default_prefix 8580# Let make expand exec_prefix. 8581test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8582 8583# VPATH may cause trouble with some makes, so we remove $(srcdir), 8584# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8585# trailing colons and then remove the whole line if VPATH becomes empty 8586# (actually we leave an empty line to preserve line numbers). 8587if test "x$srcdir" = x.; then 8588 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8589s/:*\$(srcdir):*/:/; 8590s/:*\${srcdir}:*/:/; 8591s/:*@srcdir@:*/:/; 8592s/^\([^=]*=[ ]*\):*/\1/; 8593s/:*$//; 8594s/^[^=]*=[ ]*$//; 8595}' 8596fi 8597 8598DEFS=-DHAVE_CONFIG_H 8599 8600ac_libobjs= 8601ac_ltlibobjs= 8602for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8603 # 1. Remove the extension, and $U if already installed. 8604 ac_i=`echo "$ac_i" | 8605 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8606 # 2. Add them. 8607 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8608 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8609done 8610LIBOBJS=$ac_libobjs 8611 8612LTLIBOBJS=$ac_ltlibobjs 8613 8614 8615 8616: ${CONFIG_STATUS=./config.status} 8617ac_clean_files_save=$ac_clean_files 8618ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8619{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8620echo "$as_me: creating $CONFIG_STATUS" >&6;} 8621cat >$CONFIG_STATUS <<_ACEOF 8622#! $SHELL 8623# Generated by $as_me. 8624# Run this file to recreate the current configuration. 8625# Compiler output produced by configure, useful for debugging 8626# configure, is in config.log if it exists. 8627 8628debug=false 8629ac_cs_recheck=false 8630ac_cs_silent=false 8631SHELL=\${CONFIG_SHELL-$SHELL} 8632_ACEOF 8633 8634cat >>$CONFIG_STATUS <<\_ACEOF 8635## --------------------- ## 8636## M4sh Initialization. ## 8637## --------------------- ## 8638 8639# Be Bourne compatible 8640if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8641 emulate sh 8642 NULLCMD=: 8643 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8644 # is contrary to our usage. Disable this feature. 8645 alias -g '${1+"$@"}'='"$@"' 8646elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8647 set -o posix 8648fi 8649DUALCASE=1; export DUALCASE # for MKS sh 8650 8651# Support unset when possible. 8652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8653 as_unset=unset 8654else 8655 as_unset=false 8656fi 8657 8658 8659# Work around bugs in pre-3.0 UWIN ksh. 8660$as_unset ENV MAIL MAILPATH 8661PS1='$ ' 8662PS2='> ' 8663PS4='+ ' 8664 8665# NLS nuisances. 8666for as_var in \ 8667 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8668 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8669 LC_TELEPHONE LC_TIME 8670do 8671 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8672 eval $as_var=C; export $as_var 8673 else 8674 $as_unset $as_var 8675 fi 8676done 8677 8678# Required to use basename. 8679if expr a : '\(a\)' >/dev/null 2>&1; then 8680 as_expr=expr 8681else 8682 as_expr=false 8683fi 8684 8685if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8686 as_basename=basename 8687else 8688 as_basename=false 8689fi 8690 8691 8692# Name of the executable. 8693as_me=`$as_basename "$0" || 8694$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8695 X"$0" : 'X\(//\)$' \| \ 8696 X"$0" : 'X\(/\)$' \| \ 8697 . : '\(.\)' 2>/dev/null || 8698echo X/"$0" | 8699 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8700 /^X\/\(\/\/\)$/{ s//\1/; q; } 8701 /^X\/\(\/\).*/{ s//\1/; q; } 8702 s/.*/./; q'` 8703 8704 8705# PATH needs CR, and LINENO needs CR and PATH. 8706# Avoid depending upon Character Ranges. 8707as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8709as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8710as_cr_digits='0123456789' 8711as_cr_alnum=$as_cr_Letters$as_cr_digits 8712 8713# The user is always right. 8714if test "${PATH_SEPARATOR+set}" != set; then 8715 echo "#! /bin/sh" >conf$$.sh 8716 echo "exit 0" >>conf$$.sh 8717 chmod +x conf$$.sh 8718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8719 PATH_SEPARATOR=';' 8720 else 8721 PATH_SEPARATOR=: 8722 fi 8723 rm -f conf$$.sh 8724fi 8725 8726 8727 as_lineno_1=$LINENO 8728 as_lineno_2=$LINENO 8729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8730 test "x$as_lineno_1" != "x$as_lineno_2" && 8731 test "x$as_lineno_3" = "x$as_lineno_2" || { 8732 # Find who we are. Look in the path if we contain no path at all 8733 # relative or not. 8734 case $0 in 8735 *[\\/]* ) as_myself=$0 ;; 8736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8737for as_dir in $PATH 8738do 8739 IFS=$as_save_IFS 8740 test -z "$as_dir" && as_dir=. 8741 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8742done 8743 8744 ;; 8745 esac 8746 # We did not find ourselves, most probably we were run as `sh COMMAND' 8747 # in which case we are not to be found in the path. 8748 if test "x$as_myself" = x; then 8749 as_myself=$0 8750 fi 8751 if test ! -f "$as_myself"; then 8752 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 8753echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 8754 { (exit 1); exit 1; }; } 8755 fi 8756 case $CONFIG_SHELL in 8757 '') 8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8759for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 8760do 8761 IFS=$as_save_IFS 8762 test -z "$as_dir" && as_dir=. 8763 for as_base in sh bash ksh sh5; do 8764 case $as_dir in 8765 /*) 8766 if ("$as_dir/$as_base" -c ' 8767 as_lineno_1=$LINENO 8768 as_lineno_2=$LINENO 8769 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8770 test "x$as_lineno_1" != "x$as_lineno_2" && 8771 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8772 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8773 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8774 CONFIG_SHELL=$as_dir/$as_base 8775 export CONFIG_SHELL 8776 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8777 fi;; 8778 esac 8779 done 8780done 8781;; 8782 esac 8783 8784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8785 # uniformly replaced by the line number. The first 'sed' inserts a 8786 # line-number line before each line; the second 'sed' does the real 8787 # work. The second script uses 'N' to pair each line-number line 8788 # with the numbered line, and appends trailing '-' during 8789 # substitution so that $LINENO is not a special case at line end. 8790 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8791 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 8792 sed '=' <$as_myself | 8793 sed ' 8794 N 8795 s,$,-, 8796 : loop 8797 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 8798 t loop 8799 s,-$,, 8800 s,^['$as_cr_digits']*\n,, 8801 ' >$as_me.lineno && 8802 chmod +x $as_me.lineno || 8803 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 8804echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 8805 { (exit 1); exit 1; }; } 8806 8807 # Don't try to exec as it changes $[0], causing all sort of problems 8808 # (the dirname of $[0] is not the place where we might find the 8809 # original and so on. Autoconf is especially sensible to this). 8810 . ./$as_me.lineno 8811 # Exit status is that of the last command. 8812 exit 8813} 8814 8815 8816case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 8817 *c*,-n*) ECHO_N= ECHO_C=' 8818' ECHO_T=' ' ;; 8819 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 8820 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 8821esac 8822 8823if expr a : '\(a\)' >/dev/null 2>&1; then 8824 as_expr=expr 8825else 8826 as_expr=false 8827fi 8828 8829rm -f conf$$ conf$$.exe conf$$.file 8830echo >conf$$.file 8831if ln -s conf$$.file conf$$ 2>/dev/null; then 8832 # We could just check for DJGPP; but this test a) works b) is more generic 8833 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 8834 if test -f conf$$.exe; then 8835 # Don't use ln at all; we don't have any links 8836 as_ln_s='cp -p' 8837 else 8838 as_ln_s='ln -s' 8839 fi 8840elif ln conf$$.file conf$$ 2>/dev/null; then 8841 as_ln_s=ln 8842else 8843 as_ln_s='cp -p' 8844fi 8845rm -f conf$$ conf$$.exe conf$$.file 8846 8847if mkdir -p . 2>/dev/null; then 8848 as_mkdir_p=: 8849else 8850 test -d ./-p && rmdir ./-p 8851 as_mkdir_p=false 8852fi 8853 8854as_executable_p="test -f" 8855 8856# Sed expression to map a string onto a valid CPP name. 8857as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8858 8859# Sed expression to map a string onto a valid variable name. 8860as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8861 8862 8863# IFS 8864# We need space, tab and new line, in precisely that order. 8865as_nl=' 8866' 8867IFS=" $as_nl" 8868 8869# CDPATH. 8870$as_unset CDPATH 8871 8872exec 6>&1 8873 8874# Open the log real soon, to keep \$[0] and so on meaningful, and to 8875# report actual input values of CONFIG_FILES etc. instead of their 8876# values after options handling. Logging --version etc. is OK. 8877exec 5>>config.log 8878{ 8879 echo 8880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8881## Running $as_me. ## 8882_ASBOX 8883} >&5 8884cat >&5 <<_CSEOF 8885 8886This file was extended by readline $as_me 5.2, which was 8887generated by GNU Autoconf 2.59. Invocation command line was 8888 8889 CONFIG_FILES = $CONFIG_FILES 8890 CONFIG_HEADERS = $CONFIG_HEADERS 8891 CONFIG_LINKS = $CONFIG_LINKS 8892 CONFIG_COMMANDS = $CONFIG_COMMANDS 8893 $ $0 $@ 8894 8895_CSEOF 8896echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8897echo >&5 8898_ACEOF 8899 8900# Files that config.status was made for. 8901if test -n "$ac_config_files"; then 8902 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8903fi 8904 8905if test -n "$ac_config_headers"; then 8906 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 8907fi 8908 8909if test -n "$ac_config_links"; then 8910 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 8911fi 8912 8913if test -n "$ac_config_commands"; then 8914 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 8915fi 8916 8917cat >>$CONFIG_STATUS <<\_ACEOF 8918 8919ac_cs_usage="\ 8920\`$as_me' instantiates files from templates according to the 8921current configuration. 8922 8923Usage: $0 [OPTIONS] [FILE]... 8924 8925 -h, --help print this help, then exit 8926 -V, --version print version number, then exit 8927 -q, --quiet do not print progress messages 8928 -d, --debug don't remove temporary files 8929 --recheck update $as_me by reconfiguring in the same conditions 8930 --file=FILE[:TEMPLATE] 8931 instantiate the configuration file FILE 8932 --header=FILE[:TEMPLATE] 8933 instantiate the configuration header FILE 8934 8935Configuration files: 8936$config_files 8937 8938Configuration headers: 8939$config_headers 8940 8941Configuration commands: 8942$config_commands 8943 8944Report bugs to <bug-autoconf@gnu.org>." 8945_ACEOF 8946 8947cat >>$CONFIG_STATUS <<_ACEOF 8948ac_cs_version="\\ 8949readline config.status 5.2 8950configured by $0, generated by GNU Autoconf 2.59, 8951 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8952 8953Copyright (C) 2003 Free Software Foundation, Inc. 8954This config.status script is free software; the Free Software Foundation 8955gives unlimited permission to copy, distribute and modify it." 8956srcdir=$srcdir 8957INSTALL="$INSTALL" 8958_ACEOF 8959 8960cat >>$CONFIG_STATUS <<\_ACEOF 8961# If no file are specified by the user, then we need to provide default 8962# value. By we need to know if files were specified by the user. 8963ac_need_defaults=: 8964while test $# != 0 8965do 8966 case $1 in 8967 --*=*) 8968 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8969 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8970 ac_shift=: 8971 ;; 8972 -*) 8973 ac_option=$1 8974 ac_optarg=$2 8975 ac_shift=shift 8976 ;; 8977 *) # This is not an option, so the user has probably given explicit 8978 # arguments. 8979 ac_option=$1 8980 ac_need_defaults=false;; 8981 esac 8982 8983 case $ac_option in 8984 # Handling of the options. 8985_ACEOF 8986cat >>$CONFIG_STATUS <<\_ACEOF 8987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8988 ac_cs_recheck=: ;; 8989 --version | --vers* | -V ) 8990 echo "$ac_cs_version"; exit 0 ;; 8991 --he | --h) 8992 # Conflict between --help and --header 8993 { { echo "$as_me:$LINENO: error: ambiguous option: $1 8994Try \`$0 --help' for more information." >&5 8995echo "$as_me: error: ambiguous option: $1 8996Try \`$0 --help' for more information." >&2;} 8997 { (exit 1); exit 1; }; };; 8998 --help | --hel | -h ) 8999 echo "$ac_cs_usage"; exit 0 ;; 9000 --debug | --d* | -d ) 9001 debug=: ;; 9002 --file | --fil | --fi | --f ) 9003 $ac_shift 9004 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 9005 ac_need_defaults=false;; 9006 --header | --heade | --head | --hea ) 9007 $ac_shift 9008 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 9009 ac_need_defaults=false;; 9010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9011 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9012 ac_cs_silent=: ;; 9013 9014 # This is an error. 9015 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 9016Try \`$0 --help' for more information." >&5 9017echo "$as_me: error: unrecognized option: $1 9018Try \`$0 --help' for more information." >&2;} 9019 { (exit 1); exit 1; }; } ;; 9020 9021 *) ac_config_targets="$ac_config_targets $1" ;; 9022 9023 esac 9024 shift 9025done 9026 9027ac_configure_extra_args= 9028 9029if $ac_cs_silent; then 9030 exec 6>/dev/null 9031 ac_configure_extra_args="$ac_configure_extra_args --silent" 9032fi 9033 9034_ACEOF 9035cat >>$CONFIG_STATUS <<_ACEOF 9036if \$ac_cs_recheck; then 9037 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 9038 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9039fi 9040 9041_ACEOF 9042 9043 9044 9045 9046 9047cat >>$CONFIG_STATUS <<\_ACEOF 9048for ac_config_target in $ac_config_targets 9049do 9050 case "$ac_config_target" in 9051 # Handling of arguments. 9052 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9053 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 9054 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 9055 "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; 9056 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 9057 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 9059echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9060 { (exit 1); exit 1; }; };; 9061 esac 9062done 9063 9064# If the user did not use the arguments to specify the items to instantiate, 9065# then the envvar interface is used. Set only those that are not. 9066# We use the long form for the default assignment because of an extremely 9067# bizarre bug on SunOS 4.1.3. 9068if $ac_need_defaults; then 9069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9071 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9072fi 9073 9074# Have a temporary directory for convenience. Make it in the build tree 9075# simply because there is no reason to put it here, and in addition, 9076# creating and moving files from /tmp can sometimes cause problems. 9077# Create a temporary directory, and hook for its removal unless debugging. 9078$debug || 9079{ 9080 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 9081 trap '{ (exit 1); exit 1; }' 1 2 13 15 9082} 9083 9084# Create a (secure) tmp directory for tmp files. 9085 9086{ 9087 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 9088 test -n "$tmp" && test -d "$tmp" 9089} || 9090{ 9091 tmp=./confstat$$-$RANDOM 9092 (umask 077 && mkdir $tmp) 9093} || 9094{ 9095 echo "$me: cannot create a temporary directory in ." >&2 9096 { (exit 1); exit 1; } 9097} 9098 9099_ACEOF 9100 9101cat >>$CONFIG_STATUS <<_ACEOF 9102 9103# 9104# CONFIG_FILES section. 9105# 9106 9107# No need to generate the scripts if there are no CONFIG_FILES. 9108# This happens for instance when ./config.status config.h 9109if test -n "\$CONFIG_FILES"; then 9110 # Protect against being on the right side of a sed subst in config.status. 9111 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 9112 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 9113s,@SHELL@,$SHELL,;t t 9114s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 9115s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 9116s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 9117s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 9118s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 9119s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 9120s,@exec_prefix@,$exec_prefix,;t t 9121s,@prefix@,$prefix,;t t 9122s,@program_transform_name@,$program_transform_name,;t t 9123s,@bindir@,$bindir,;t t 9124s,@sbindir@,$sbindir,;t t 9125s,@libexecdir@,$libexecdir,;t t 9126s,@datadir@,$datadir,;t t 9127s,@sysconfdir@,$sysconfdir,;t t 9128s,@sharedstatedir@,$sharedstatedir,;t t 9129s,@localstatedir@,$localstatedir,;t t 9130s,@libdir@,$libdir,;t t 9131s,@includedir@,$includedir,;t t 9132s,@oldincludedir@,$oldincludedir,;t t 9133s,@infodir@,$infodir,;t t 9134s,@mandir@,$mandir,;t t 9135s,@build_alias@,$build_alias,;t t 9136s,@host_alias@,$host_alias,;t t 9137s,@target_alias@,$target_alias,;t t 9138s,@DEFS@,$DEFS,;t t 9139s,@ECHO_C@,$ECHO_C,;t t 9140s,@ECHO_N@,$ECHO_N,;t t 9141s,@ECHO_T@,$ECHO_T,;t t 9142s,@LIBS@,$LIBS,;t t 9143s,@build@,$build,;t t 9144s,@build_cpu@,$build_cpu,;t t 9145s,@build_vendor@,$build_vendor,;t t 9146s,@build_os@,$build_os,;t t 9147s,@host@,$host,;t t 9148s,@host_cpu@,$host_cpu,;t t 9149s,@host_vendor@,$host_vendor,;t t 9150s,@host_os@,$host_os,;t t 9151s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t 9152s,@SET_MAKE@,$SET_MAKE,;t t 9153s,@CC@,$CC,;t t 9154s,@CFLAGS@,$CFLAGS,;t t 9155s,@LDFLAGS@,$LDFLAGS,;t t 9156s,@CPPFLAGS@,$CPPFLAGS,;t t 9157s,@ac_ct_CC@,$ac_ct_CC,;t t 9158s,@EXEEXT@,$EXEEXT,;t t 9159s,@OBJEXT@,$OBJEXT,;t t 9160s,@CPP@,$CPP,;t t 9161s,@EGREP@,$EGREP,;t t 9162s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 9163s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 9164s,@INSTALL_DATA@,$INSTALL_DATA,;t t 9165s,@AR@,$AR,;t t 9166s,@RANLIB@,$RANLIB,;t t 9167s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 9168s,@MAKE_SHELL@,$MAKE_SHELL,;t t 9169s,@SHOBJ_CC@,$SHOBJ_CC,;t t 9170s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t 9171s,@SHOBJ_LD@,$SHOBJ_LD,;t t 9172s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t 9173s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t 9174s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t 9175s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t 9176s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t 9177s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t 9178s,@SHLIB_DOT@,$SHLIB_DOT,;t t 9179s,@SHLIB_LIBPREF@,$SHLIB_LIBPREF,;t t 9180s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t 9181s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t 9182s,@SHLIB_DLLVERSION@,$SHLIB_DLLVERSION,;t t 9183s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t 9184s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t 9185s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t 9186s,@STATIC_TARGET@,$STATIC_TARGET,;t t 9187s,@SHARED_TARGET@,$SHARED_TARGET,;t t 9188s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t 9189s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t 9190s,@PURIFY@,$PURIFY,;t t 9191s,@BUILD_DIR@,$BUILD_DIR,;t t 9192s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t 9193s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t 9194s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t 9195s,@ARFLAGS@,$ARFLAGS,;t t 9196s,@LIBVERSION@,$LIBVERSION,;t t 9197s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t 9198s,@LIBOBJS@,$LIBOBJS,;t t 9199s,@LTLIBOBJS@,$LTLIBOBJS,;t t 9200CEOF 9201 9202_ACEOF 9203 9204 cat >>$CONFIG_STATUS <<\_ACEOF 9205 # Split the substitutions into bite-sized pieces for seds with 9206 # small command number limits, like on Digital OSF/1 and HP-UX. 9207 ac_max_sed_lines=48 9208 ac_sed_frag=1 # Number of current file. 9209 ac_beg=1 # First line for current file. 9210 ac_end=$ac_max_sed_lines # Line after last line for current file. 9211 ac_more_lines=: 9212 ac_sed_cmds= 9213 while $ac_more_lines; do 9214 if test $ac_beg -gt 1; then 9215 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9216 else 9217 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9218 fi 9219 if test ! -s $tmp/subs.frag; then 9220 ac_more_lines=false 9221 else 9222 # The purpose of the label and of the branching condition is to 9223 # speed up the sed processing (if there are no `@' at all, there 9224 # is no need to browse any of the substitutions). 9225 # These are the two extra sed commands mentioned above. 9226 (echo ':t 9227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 9228 if test -z "$ac_sed_cmds"; then 9229 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 9230 else 9231 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 9232 fi 9233 ac_sed_frag=`expr $ac_sed_frag + 1` 9234 ac_beg=$ac_end 9235 ac_end=`expr $ac_end + $ac_max_sed_lines` 9236 fi 9237 done 9238 if test -z "$ac_sed_cmds"; then 9239 ac_sed_cmds=cat 9240 fi 9241fi # test -n "$CONFIG_FILES" 9242 9243_ACEOF 9244cat >>$CONFIG_STATUS <<\_ACEOF 9245for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 9246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9247 case $ac_file in 9248 - | *:- | *:-:* ) # input from stdin 9249 cat >$tmp/stdin 9250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9254 * ) ac_file_in=$ac_file.in ;; 9255 esac 9256 9257 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9258 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9259$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9260 X"$ac_file" : 'X\(//\)[^/]' \| \ 9261 X"$ac_file" : 'X\(//\)$' \| \ 9262 X"$ac_file" : 'X\(/\)' \| \ 9263 . : '\(.\)' 2>/dev/null || 9264echo X"$ac_file" | 9265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9266 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9267 /^X\(\/\/\)$/{ s//\1/; q; } 9268 /^X\(\/\).*/{ s//\1/; q; } 9269 s/.*/./; q'` 9270 { if $as_mkdir_p; then 9271 mkdir -p "$ac_dir" 9272 else 9273 as_dir="$ac_dir" 9274 as_dirs= 9275 while test ! -d "$as_dir"; do 9276 as_dirs="$as_dir $as_dirs" 9277 as_dir=`(dirname "$as_dir") 2>/dev/null || 9278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9279 X"$as_dir" : 'X\(//\)[^/]' \| \ 9280 X"$as_dir" : 'X\(//\)$' \| \ 9281 X"$as_dir" : 'X\(/\)' \| \ 9282 . : '\(.\)' 2>/dev/null || 9283echo X"$as_dir" | 9284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9285 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9286 /^X\(\/\/\)$/{ s//\1/; q; } 9287 /^X\(\/\).*/{ s//\1/; q; } 9288 s/.*/./; q'` 9289 done 9290 test ! -n "$as_dirs" || mkdir $as_dirs 9291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9292echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9293 { (exit 1); exit 1; }; }; } 9294 9295 ac_builddir=. 9296 9297if test "$ac_dir" != .; then 9298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9299 # A "../" for each directory in $ac_dir_suffix. 9300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9301else 9302 ac_dir_suffix= ac_top_builddir= 9303fi 9304 9305case $srcdir in 9306 .) # No --srcdir option. We are building in place. 9307 ac_srcdir=. 9308 if test -z "$ac_top_builddir"; then 9309 ac_top_srcdir=. 9310 else 9311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9312 fi ;; 9313 [\\/]* | ?:[\\/]* ) # Absolute path. 9314 ac_srcdir=$srcdir$ac_dir_suffix; 9315 ac_top_srcdir=$srcdir ;; 9316 *) # Relative path. 9317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9318 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9319esac 9320 9321# Do not use `cd foo && pwd` to compute absolute paths, because 9322# the directories may not exist. 9323case `pwd` in 9324.) ac_abs_builddir="$ac_dir";; 9325*) 9326 case "$ac_dir" in 9327 .) ac_abs_builddir=`pwd`;; 9328 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9329 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9330 esac;; 9331esac 9332case $ac_abs_builddir in 9333.) ac_abs_top_builddir=${ac_top_builddir}.;; 9334*) 9335 case ${ac_top_builddir}. in 9336 .) ac_abs_top_builddir=$ac_abs_builddir;; 9337 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9338 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9339 esac;; 9340esac 9341case $ac_abs_builddir in 9342.) ac_abs_srcdir=$ac_srcdir;; 9343*) 9344 case $ac_srcdir in 9345 .) ac_abs_srcdir=$ac_abs_builddir;; 9346 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9347 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9348 esac;; 9349esac 9350case $ac_abs_builddir in 9351.) ac_abs_top_srcdir=$ac_top_srcdir;; 9352*) 9353 case $ac_top_srcdir in 9354 .) ac_abs_top_srcdir=$ac_abs_builddir;; 9355 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9356 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9357 esac;; 9358esac 9359 9360 9361 case $INSTALL in 9362 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9363 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9364 esac 9365 9366 if test x"$ac_file" != x-; then 9367 { echo "$as_me:$LINENO: creating $ac_file" >&5 9368echo "$as_me: creating $ac_file" >&6;} 9369 rm -f "$ac_file" 9370 fi 9371 # Let's still pretend it is `configure' which instantiates (i.e., don't 9372 # use $as_me), people would be surprised to read: 9373 # /* config.h. Generated by config.status. */ 9374 if test x"$ac_file" = x-; then 9375 configure_input= 9376 else 9377 configure_input="$ac_file. " 9378 fi 9379 configure_input=$configure_input"Generated from `echo $ac_file_in | 9380 sed 's,.*/,,'` by configure." 9381 9382 # First look for the input files in the build tree, otherwise in the 9383 # src tree. 9384 ac_file_inputs=`IFS=: 9385 for f in $ac_file_in; do 9386 case $f in 9387 -) echo $tmp/stdin ;; 9388 [\\/$]*) 9389 # Absolute (can't be DOS-style, as IFS=:) 9390 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9391echo "$as_me: error: cannot find input file: $f" >&2;} 9392 { (exit 1); exit 1; }; } 9393 echo "$f";; 9394 *) # Relative 9395 if test -f "$f"; then 9396 # Build tree 9397 echo "$f" 9398 elif test -f "$srcdir/$f"; then 9399 # Source tree 9400 echo "$srcdir/$f" 9401 else 9402 # /dev/null tree 9403 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9404echo "$as_me: error: cannot find input file: $f" >&2;} 9405 { (exit 1); exit 1; }; } 9406 fi;; 9407 esac 9408 done` || { (exit 1); exit 1; } 9409_ACEOF 9410cat >>$CONFIG_STATUS <<_ACEOF 9411 sed "$ac_vpsub 9412$extrasub 9413_ACEOF 9414cat >>$CONFIG_STATUS <<\_ACEOF 9415:t 9416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9417s,@configure_input@,$configure_input,;t t 9418s,@srcdir@,$ac_srcdir,;t t 9419s,@abs_srcdir@,$ac_abs_srcdir,;t t 9420s,@top_srcdir@,$ac_top_srcdir,;t t 9421s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9422s,@builddir@,$ac_builddir,;t t 9423s,@abs_builddir@,$ac_abs_builddir,;t t 9424s,@top_builddir@,$ac_top_builddir,;t t 9425s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9426s,@INSTALL@,$ac_INSTALL,;t t 9427" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9428 rm -f $tmp/stdin 9429 if test x"$ac_file" != x-; then 9430 mv $tmp/out $ac_file 9431 else 9432 cat $tmp/out 9433 rm -f $tmp/out 9434 fi 9435 9436done 9437_ACEOF 9438cat >>$CONFIG_STATUS <<\_ACEOF 9439 9440# 9441# CONFIG_HEADER section. 9442# 9443 9444# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9445# NAME is the cpp macro being defined and VALUE is the value it is being given. 9446# 9447# ac_d sets the value in "#define NAME VALUE" lines. 9448ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9449ac_dB='[ ].*$,\1#\2' 9450ac_dC=' ' 9451ac_dD=',;t' 9452# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9453ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9454ac_uB='$,\1#\2define\3' 9455ac_uC=' ' 9456ac_uD=',;t' 9457 9458for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 9459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9460 case $ac_file in 9461 - | *:- | *:-:* ) # input from stdin 9462 cat >$tmp/stdin 9463 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9464 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9465 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9466 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9467 * ) ac_file_in=$ac_file.in ;; 9468 esac 9469 9470 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 9471echo "$as_me: creating $ac_file" >&6;} 9472 9473 # First look for the input files in the build tree, otherwise in the 9474 # src tree. 9475 ac_file_inputs=`IFS=: 9476 for f in $ac_file_in; do 9477 case $f in 9478 -) echo $tmp/stdin ;; 9479 [\\/$]*) 9480 # Absolute (can't be DOS-style, as IFS=:) 9481 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9482echo "$as_me: error: cannot find input file: $f" >&2;} 9483 { (exit 1); exit 1; }; } 9484 # Do quote $f, to prevent DOS paths from being IFS'd. 9485 echo "$f";; 9486 *) # Relative 9487 if test -f "$f"; then 9488 # Build tree 9489 echo "$f" 9490 elif test -f "$srcdir/$f"; then 9491 # Source tree 9492 echo "$srcdir/$f" 9493 else 9494 # /dev/null tree 9495 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9496echo "$as_me: error: cannot find input file: $f" >&2;} 9497 { (exit 1); exit 1; }; } 9498 fi;; 9499 esac 9500 done` || { (exit 1); exit 1; } 9501 # Remove the trailing spaces. 9502 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9503 9504_ACEOF 9505 9506# Transform confdefs.h into two sed scripts, `conftest.defines' and 9507# `conftest.undefs', that substitutes the proper values into 9508# config.h.in to produce config.h. The first handles `#define' 9509# templates, and the second `#undef' templates. 9510# And first: Protect against being on the right side of a sed subst in 9511# config.status. Protect against being in an unquoted here document 9512# in config.status. 9513rm -f conftest.defines conftest.undefs 9514# Using a here document instead of a string reduces the quoting nightmare. 9515# Putting comments in sed scripts is not portable. 9516# 9517# `end' is used to avoid that the second main sed command (meant for 9518# 0-ary CPP macros) applies to n-ary macro definitions. 9519# See the Autoconf documentation for `clear'. 9520cat >confdef2sed.sed <<\_ACEOF 9521s/[\\&,]/\\&/g 9522s,[\\$`],\\&,g 9523t clear 9524: clear 9525s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9526t end 9527s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9528: end 9529_ACEOF 9530# If some macros were called several times there might be several times 9531# the same #defines, which is useless. Nevertheless, we may not want to 9532# sort them, since we want the *last* AC-DEFINE to be honored. 9533uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9534sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9535rm -f confdef2sed.sed 9536 9537# This sed command replaces #undef with comments. This is necessary, for 9538# example, in the case of _POSIX_SOURCE, which is predefined and required 9539# on some systems where configure will not decide to define it. 9540cat >>conftest.undefs <<\_ACEOF 9541s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9542_ACEOF 9543 9544# Break up conftest.defines because some shells have a limit on the size 9545# of here documents, and old seds have small limits too (100 cmds). 9546echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9547echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9548echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9549echo ' :' >>$CONFIG_STATUS 9550rm -f conftest.tail 9551while grep . conftest.defines >/dev/null 9552do 9553 # Write a limited-size here document to $tmp/defines.sed. 9554 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9555 # Speed up: don't consider the non `#define' lines. 9556 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9557 # Work around the forget-to-reset-the-flag bug. 9558 echo 't clr' >>$CONFIG_STATUS 9559 echo ': clr' >>$CONFIG_STATUS 9560 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9561 echo 'CEOF 9562 sed -f $tmp/defines.sed $tmp/in >$tmp/out 9563 rm -f $tmp/in 9564 mv $tmp/out $tmp/in 9565' >>$CONFIG_STATUS 9566 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9567 rm -f conftest.defines 9568 mv conftest.tail conftest.defines 9569done 9570rm -f conftest.defines 9571echo ' fi # grep' >>$CONFIG_STATUS 9572echo >>$CONFIG_STATUS 9573 9574# Break up conftest.undefs because some shells have a limit on the size 9575# of here documents, and old seds have small limits too (100 cmds). 9576echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9577rm -f conftest.tail 9578while grep . conftest.undefs >/dev/null 9579do 9580 # Write a limited-size here document to $tmp/undefs.sed. 9581 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9582 # Speed up: don't consider the non `#undef' 9583 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9584 # Work around the forget-to-reset-the-flag bug. 9585 echo 't clr' >>$CONFIG_STATUS 9586 echo ': clr' >>$CONFIG_STATUS 9587 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9588 echo 'CEOF 9589 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9590 rm -f $tmp/in 9591 mv $tmp/out $tmp/in 9592' >>$CONFIG_STATUS 9593 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9594 rm -f conftest.undefs 9595 mv conftest.tail conftest.undefs 9596done 9597rm -f conftest.undefs 9598 9599cat >>$CONFIG_STATUS <<\_ACEOF 9600 # Let's still pretend it is `configure' which instantiates (i.e., don't 9601 # use $as_me), people would be surprised to read: 9602 # /* config.h. Generated by config.status. */ 9603 if test x"$ac_file" = x-; then 9604 echo "/* Generated by configure. */" >$tmp/config.h 9605 else 9606 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9607 fi 9608 cat $tmp/in >>$tmp/config.h 9609 rm -f $tmp/in 9610 if test x"$ac_file" != x-; then 9611 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9612 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9613echo "$as_me: $ac_file is unchanged" >&6;} 9614 else 9615 ac_dir=`(dirname "$ac_file") 2>/dev/null || 9616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9617 X"$ac_file" : 'X\(//\)[^/]' \| \ 9618 X"$ac_file" : 'X\(//\)$' \| \ 9619 X"$ac_file" : 'X\(/\)' \| \ 9620 . : '\(.\)' 2>/dev/null || 9621echo X"$ac_file" | 9622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9623 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9624 /^X\(\/\/\)$/{ s//\1/; q; } 9625 /^X\(\/\).*/{ s//\1/; q; } 9626 s/.*/./; q'` 9627 { if $as_mkdir_p; then 9628 mkdir -p "$ac_dir" 9629 else 9630 as_dir="$ac_dir" 9631 as_dirs= 9632 while test ! -d "$as_dir"; do 9633 as_dirs="$as_dir $as_dirs" 9634 as_dir=`(dirname "$as_dir") 2>/dev/null || 9635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9636 X"$as_dir" : 'X\(//\)[^/]' \| \ 9637 X"$as_dir" : 'X\(//\)$' \| \ 9638 X"$as_dir" : 'X\(/\)' \| \ 9639 . : '\(.\)' 2>/dev/null || 9640echo X"$as_dir" | 9641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9642 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9643 /^X\(\/\/\)$/{ s//\1/; q; } 9644 /^X\(\/\).*/{ s//\1/; q; } 9645 s/.*/./; q'` 9646 done 9647 test ! -n "$as_dirs" || mkdir $as_dirs 9648 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9649echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9650 { (exit 1); exit 1; }; }; } 9651 9652 rm -f $ac_file 9653 mv $tmp/config.h $ac_file 9654 fi 9655 else 9656 cat $tmp/config.h 9657 rm -f $tmp/config.h 9658 fi 9659done 9660_ACEOF 9661cat >>$CONFIG_STATUS <<\_ACEOF 9662 9663# 9664# CONFIG_COMMANDS section. 9665# 9666for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 9667 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 9668 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 9669 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 9670$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9671 X"$ac_dest" : 'X\(//\)[^/]' \| \ 9672 X"$ac_dest" : 'X\(//\)$' \| \ 9673 X"$ac_dest" : 'X\(/\)' \| \ 9674 . : '\(.\)' 2>/dev/null || 9675echo X"$ac_dest" | 9676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9677 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9678 /^X\(\/\/\)$/{ s//\1/; q; } 9679 /^X\(\/\).*/{ s//\1/; q; } 9680 s/.*/./; q'` 9681 { if $as_mkdir_p; then 9682 mkdir -p "$ac_dir" 9683 else 9684 as_dir="$ac_dir" 9685 as_dirs= 9686 while test ! -d "$as_dir"; do 9687 as_dirs="$as_dir $as_dirs" 9688 as_dir=`(dirname "$as_dir") 2>/dev/null || 9689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9690 X"$as_dir" : 'X\(//\)[^/]' \| \ 9691 X"$as_dir" : 'X\(//\)$' \| \ 9692 X"$as_dir" : 'X\(/\)' \| \ 9693 . : '\(.\)' 2>/dev/null || 9694echo X"$as_dir" | 9695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9696 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9697 /^X\(\/\/\)$/{ s//\1/; q; } 9698 /^X\(\/\).*/{ s//\1/; q; } 9699 s/.*/./; q'` 9700 done 9701 test ! -n "$as_dirs" || mkdir $as_dirs 9702 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9703echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9704 { (exit 1); exit 1; }; }; } 9705 9706 ac_builddir=. 9707 9708if test "$ac_dir" != .; then 9709 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9710 # A "../" for each directory in $ac_dir_suffix. 9711 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9712else 9713 ac_dir_suffix= ac_top_builddir= 9714fi 9715 9716case $srcdir in 9717 .) # No --srcdir option. We are building in place. 9718 ac_srcdir=. 9719 if test -z "$ac_top_builddir"; then 9720 ac_top_srcdir=. 9721 else 9722 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9723 fi ;; 9724 [\\/]* | ?:[\\/]* ) # Absolute path. 9725 ac_srcdir=$srcdir$ac_dir_suffix; 9726 ac_top_srcdir=$srcdir ;; 9727 *) # Relative path. 9728 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9729 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9730esac 9731 9732# Do not use `cd foo && pwd` to compute absolute paths, because 9733# the directories may not exist. 9734case `pwd` in 9735.) ac_abs_builddir="$ac_dir";; 9736*) 9737 case "$ac_dir" in 9738 .) ac_abs_builddir=`pwd`;; 9739 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9740 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9741 esac;; 9742esac 9743case $ac_abs_builddir in 9744.) ac_abs_top_builddir=${ac_top_builddir}.;; 9745*) 9746 case ${ac_top_builddir}. in 9747 .) ac_abs_top_builddir=$ac_abs_builddir;; 9748 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9749 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9750 esac;; 9751esac 9752case $ac_abs_builddir in 9753.) ac_abs_srcdir=$ac_srcdir;; 9754*) 9755 case $ac_srcdir in 9756 .) ac_abs_srcdir=$ac_abs_builddir;; 9757 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9758 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9759 esac;; 9760esac 9761case $ac_abs_builddir in 9762.) ac_abs_top_srcdir=$ac_top_srcdir;; 9763*) 9764 case $ac_top_srcdir in 9765 .) ac_abs_top_srcdir=$ac_abs_builddir;; 9766 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9767 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9768 esac;; 9769esac 9770 9771 9772 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 9773echo "$as_me: executing $ac_dest commands" >&6;} 9774 case $ac_dest in 9775 default ) 9776# Makefile uses this timestamp file to record whether config.h is up to date. 9777echo > stamp-h 9778 ;; 9779 esac 9780done 9781_ACEOF 9782 9783cat >>$CONFIG_STATUS <<\_ACEOF 9784 9785{ (exit 0); exit 0; } 9786_ACEOF 9787chmod +x $CONFIG_STATUS 9788ac_clean_files=$ac_clean_files_save 9789 9790 9791# configure is writing to config.log, and then calls config.status. 9792# config.status does its own redirection, appending to config.log. 9793# Unfortunately, on DOS this fails, as config.log is still kept open 9794# by configure, so config.status won't be able to write to it; its 9795# output is simply discarded. So we exec the FD to /dev/null, 9796# effectively closing config.log, so it can be properly (re)opened and 9797# appended to by config.status. When coming back to configure, we 9798# need to make the FD available again. 9799if test "$no_create" != yes; then 9800 ac_cs_success=: 9801 ac_config_status_args= 9802 test "$silent" = yes && 9803 ac_config_status_args="$ac_config_status_args --quiet" 9804 exec 5>/dev/null 9805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9806 exec 5>>config.log 9807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9808 # would make configure fail if this is the last instruction. 9809 $ac_cs_success || { (exit 1); exit 1; } 9810fi 9811 9812