Diff for /embedaddon/readline/configure between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2014/07/30 08:16:45 version 1.1.1.2, 2021/03/17 01:01:01
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
# From configure.ac for Readline 6.3, version 2.73.# From configure.ac for Readline 8.1, version 2.90.
 # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for readline 6.3.# Generated by GNU Autoconf 2.69 for readline 8.1.
 #  #
 # Report bugs to <bug-readline@gnu.org>.  # Report bugs to <bug-readline@gnu.org>.
 #  #
 #  #
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 
# Foundation, Inc. 
 #  #
 #  #
 # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
Line 137  export LANGUAGE Line 135  export LANGUAGE
 # CDPATH.  # CDPATH.
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   
   # Use a proper internal environment variable to ensure we don't fall
     # into an infinite loop, continuously re-executing ourselves.
     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
       _as_can_reexec=no; export _as_can_reexec;
       # We cannot yet assume a decent shell, so we have to provide a
   # neutralization value for shells without unset; and this also
   # works around shells that cannot unset nonexistent variables.
   # Preserve -v and -x to the replacement shell.
   BASH_ENV=/dev/null
   ENV=/dev/null
   (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
   case $- in # ((((
     *v*x* | *x*v* ) as_opts=-vx ;;
     *v* ) as_opts=-v ;;
     *x* ) as_opts=-x ;;
     * ) as_opts= ;;
   esac
   exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
   # Admittedly, this is quite paranoid, since all the known shells bail
   # out after a failed `exec'.
   $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
   as_fn_exit 255
     fi
     # We don't want this to propagate to other subprocesses.
             { _as_can_reexec=; unset _as_can_reexec;}
 if test "x$CONFIG_SHELL" = x; then  if test "x$CONFIG_SHELL" = x; then
   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :    as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
   emulate sh    emulate sh
Line 170  if ( set x; as_fn_ret_success y && test x = \"\$1\" ); Line 193  if ( set x; as_fn_ret_success y && test x = \"\$1\" );
 else  else
   exitcode=1; echo positional parameters were not saved.    exitcode=1; echo positional parameters were not saved.
 fi  fi
test x\$exitcode = x0 || exit 1"test x\$exitcode = x0 || exit 1
 test -x / || exit 1"
   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO    as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO    as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&    eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
Line 215  IFS=$as_save_IFS Line 239  IFS=$as_save_IFS
   
   
       if test "x$CONFIG_SHELL" != x; then :        if test "x$CONFIG_SHELL" != x; then :
  # We cannot yet assume a decent shell, so we have to provide a  export CONFIG_SHELL
        # neutralization value for shells without unset; and this also             # We cannot yet assume a decent shell, so we have to provide a
        # works around shells that cannot unset nonexistent variables.# neutralization value for shells without unset; and this also
        # Preserve -v and -x to the replacement shell.# works around shells that cannot unset nonexistent variables.
        BASH_ENV=/dev/null# Preserve -v and -x to the replacement shell.
        ENV=/dev/nullBASH_ENV=/dev/null
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENVENV=/dev/null
        export CONFIG_SHELL(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
        case $- in # ((((case $- in # ((((
          *v*x* | *x*v* ) as_opts=-vx ;;  *v*x* | *x*v* ) as_opts=-vx ;;
          *v* ) as_opts=-v ;;  *v* ) as_opts=-v ;;
          *x* ) as_opts=-x ;;  *x* ) as_opts=-x ;;
          * ) as_opts= ;;  * ) as_opts= ;;
        esacesac
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 # Admittedly, this is quite paranoid, since all the known shells bail
 # out after a failed `exec'.
 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 exit 255
 fi  fi
   
     if test x$as_have_required = xno; then :      if test x$as_have_required = xno; then :
Line 332  $as_echo X"$as_dir" | Line 360  $as_echo X"$as_dir" |
   
   
 } # as_fn_mkdir_p  } # as_fn_mkdir_p
   
   # as_fn_executable_p FILE
   # -----------------------
   # Test if FILE is an executable regular file.
   as_fn_executable_p ()
   {
     test -f "$1" && test -x "$1"
   } # as_fn_executable_p
 # as_fn_append VAR VALUE  # as_fn_append VAR VALUE
 # ----------------------  # ----------------------
 # Append the text in VALUE to the end of the definition contained in VAR. Take  # Append the text in VALUE to the end of the definition contained in VAR. Take
Line 453  as_cr_alnum=$as_cr_Letters$as_cr_digits Line 489  as_cr_alnum=$as_cr_Letters$as_cr_digits
   chmod +x "$as_me.lineno" ||    chmod +x "$as_me.lineno" ||
     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }      { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
   
     # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
     # already done that, so ensure we don't try to do so again and fall
     # in an infinite loop.  This has already happened in practice.
     _as_can_reexec=no; export _as_can_reexec
   # Don't try to exec as it changes $[0], causing all sort of problems    # Don't try to exec as it changes $[0], causing all sort of problems
   # (the dirname of $[0] is not the place where we might find the    # (the dirname of $[0] is not the place where we might find the
   # original and so on.  Autoconf is especially sensitive to this).    # original and so on.  Autoconf is especially sensitive to this).
Line 487  if (echo >conf$$.file) 2>/dev/null; then Line 527  if (echo >conf$$.file) 2>/dev/null; then
     # ... but there are two gotchas:      # ... but there are two gotchas:
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.    # In both cases, we have to default to `cp -pR'.
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'      as_ln_s='cp -pR'
   elif ln conf$$.file conf$$ 2>/dev/null; then    elif ln conf$$.file conf$$ 2>/dev/null; then
     as_ln_s=ln      as_ln_s=ln
   else    else
    as_ln_s='cp -p'    as_ln_s='cp -pR'
   fi    fi
 else  else
  as_ln_s='cp -p'  as_ln_s='cp -pR'
 fi  fi
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 rmdir conf$$.dir 2>/dev/null  rmdir conf$$.dir 2>/dev/null
Line 508  else Line 548  else
   as_mkdir_p=false    as_mkdir_p=false
 fi  fi
   
if test -x / >/dev/null 2>&1; thenas_test_x='test -x'
  as_test_x='test -x'as_executable_p=as_fn_executable_p
else 
  if ls -dL / >/dev/null 2>&1; then 
    as_ls_L_option=L 
  else 
    as_ls_L_option= 
  fi 
  as_test_x=' 
    eval sh -c '\'' 
      if test -d "$1"; then 
        test -d "$1/."; 
      else 
        case $1 in #( 
        -*)set "./$1";; 
        esac; 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 
        ???[sx]*):;;*)false;;esac;fi 
    '\'' sh 
  ' 
fi 
as_executable_p=$as_test_x 
   
 # Sed expression to map a string onto a valid CPP name.  # Sed expression to map a string onto a valid CPP name.
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Line 561  MAKEFLAGS= Line 581  MAKEFLAGS=
 # Identity of this package.  # Identity of this package.
 PACKAGE_NAME='readline'  PACKAGE_NAME='readline'
 PACKAGE_TARNAME='readline'  PACKAGE_TARNAME='readline'
PACKAGE_VERSION='6.3'PACKAGE_VERSION='8.1'
PACKAGE_STRING='readline 6.3'PACKAGE_STRING='readline 8.1'
 PACKAGE_BUGREPORT='bug-readline@gnu.org'  PACKAGE_BUGREPORT='bug-readline@gnu.org'
 PACKAGE_URL=''  PACKAGE_URL=''
   
Line 604  ac_includes_default="\ Line 624  ac_includes_default="\
 #endif"  #endif"
   
 ac_subst_vars='LTLIBOBJS  ac_subst_vars='LTLIBOBJS
   TERMCAP_PKG_CONFIG_LIB
 TERMCAP_LIB  TERMCAP_LIB
 LIBVERSION  LIBVERSION
 ARFLAGS  ARFLAGS
Line 611  LOCAL_DEFS Line 632  LOCAL_DEFS
 LOCAL_LDFLAGS  LOCAL_LDFLAGS
 LOCAL_CFLAGS  LOCAL_CFLAGS
 BUILD_DIR  BUILD_DIR
PURIFYEXAMPLES_INSTALL_TARGET
 SHARED_INSTALL_TARGET  SHARED_INSTALL_TARGET
 STATIC_INSTALL_TARGET  STATIC_INSTALL_TARGET
 SHARED_TARGET  SHARED_TARGET
Line 652  CFLAGS Line 673  CFLAGS
 CC  CC
 SET_MAKE  SET_MAKE
 CROSS_COMPILE  CROSS_COMPILE
   BRACKETED_PASTE
 host_os  host_os
 host_vendor  host_vendor
 host_cpu  host_cpu
Line 702  ac_subst_files='' Line 724  ac_subst_files=''
 ac_user_opts='  ac_user_opts='
 enable_option_checking  enable_option_checking
 with_curses  with_curses
 with_purify  
 enable_multibyte  enable_multibyte
 enable_shared  enable_shared
 enable_static  enable_static
   enable_install_examples
   enable_bracketed_paste_default
 enable_largefile  enable_largefile
 '  '
       ac_precious_vars='build_alias        ac_precious_vars='build_alias
Line 1172  target=$target_alias Line 1195  target=$target_alias
 if test "x$host_alias" != x; then  if test "x$host_alias" != x; then
   if test "x$build_alias" = x; then    if test "x$build_alias" = x; then
     cross_compiling=maybe      cross_compiling=maybe
     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.  
     If a cross compiler is detected then cross compile mode will be used" >&2  
   elif test "x$build_alias" != "x$host_alias"; then    elif test "x$build_alias" != "x$host_alias"; then
     cross_compiling=yes      cross_compiling=yes
   fi    fi
Line 1259  if test "$ac_init_help" = "long"; then Line 1280  if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.    # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.    # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF    cat <<_ACEOF
\`configure' configures readline 6.3 to adapt to many kinds of systems.\`configure' configures readline 8.1 to adapt to many kinds of systems.
   
 Usage: $0 [OPTION]... [VAR=VALUE]...  Usage: $0 [OPTION]... [VAR=VALUE]...
   
Line 1324  fi Line 1345  fi
   
 if test -n "$ac_init_help"; then  if test -n "$ac_init_help"; then
   case $ac_init_help in    case $ac_init_help in
     short | recursive ) echo "Configuration of readline 6.3:";;     short | recursive ) echo "Configuration of readline 8.1:";;
    esac     esac
   cat <<\_ACEOF    cat <<\_ACEOF
   
Line 1335  Optional Features: Line 1356  Optional Features:
   --enable-multibyte      enable multibyte characters if OS supports them    --enable-multibyte      enable multibyte characters if OS supports them
   --enable-shared         build shared libraries [[default=YES]]    --enable-shared         build shared libraries [[default=YES]]
   --enable-static         build static libraries [[default=YES]]    --enable-static         build static libraries [[default=YES]]
     --disable-install-examples
                             don't install examples [[default=install]]
     --disable-bracketed-paste-default
                             disable bracketed paste by default
                             [[default=enable]]
   --disable-largefile     omit support for large files    --disable-largefile     omit support for large files
   
 Optional Packages:  Optional Packages:
Line 1342  Optional Packages: Line 1368  Optional Packages:
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-curses           use the curses library instead of the termcap    --with-curses           use the curses library instead of the termcap
                           library                            library
   --with-purify           configure to postprocess with purify  
   
 Some influential environment variables:  Some influential environment variables:
   CC          C compiler command    CC          C compiler command
Line 1420  fi Line 1445  fi
 test -n "$ac_init_help" && exit $ac_status  test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then  if $ac_init_version; then
   cat <<\_ACEOF    cat <<\_ACEOF
readline configure 6.3readline configure 8.1
generated by GNU Autoconf 2.68generated by GNU Autoconf 2.69
   
Copyright (C) 2010 Free Software Foundation, Inc.Copyright (C) 2012 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation  This configure script is free software; the Free Software Foundation
 gives unlimited permission to copy, distribute and modify it.  gives unlimited permission to copy, distribute and modify it.
 _ACEOF  _ACEOF
Line 1754  $as_echo "$ac_try_echo"; } >&5 Line 1779  $as_echo "$ac_try_echo"; } >&5
          test ! -s conftest.err           test ! -s conftest.err
        } && test -s conftest$ac_exeext && {         } && test -s conftest$ac_exeext && {
          test "$cross_compiling" = yes ||           test "$cross_compiling" = yes ||
         $as_test_x conftest$ac_exeext         test -x conftest$ac_exeext
        }; then :         }; then :
   ac_retval=0    ac_retval=0
 else  else
Line 1885  $as_echo "$ac_res" >&6; } Line 1910  $as_echo "$ac_res" >&6; }
   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   
 } # ac_fn_c_check_decl  } # ac_fn_c_check_decl
   
   # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   # --------------------------------------------
   # Tries to find the compile-time value of EXPR in a program that includes
   # INCLUDES, setting VAR accordingly. Returns whether the value could be
   # computed
   ac_fn_c_compute_int ()
   {
     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     if test "$cross_compiling" = yes; then
       # Depending upon the size, compute the lo and hi bounds.
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $4
   int
   main ()
   {
   static int test_array [1 - 2 * !(($2) >= 0)];
   test_array [0] = 0;
   return test_array [0];
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
     ac_lo=0 ac_mid=0
     while :; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $4
   int
   main ()
   {
   static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   test_array [0] = 0;
   return test_array [0];
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
     ac_hi=$ac_mid; break
   else
     as_fn_arith $ac_mid + 1 && ac_lo=$as_val
                           if test $ac_lo -le $ac_mid; then
                             ac_lo= ac_hi=
                             break
                           fi
                           as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     done
   else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $4
   int
   main ()
   {
   static int test_array [1 - 2 * !(($2) < 0)];
   test_array [0] = 0;
   return test_array [0];
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
     ac_hi=-1 ac_mid=-1
     while :; do
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $4
   int
   main ()
   {
   static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   test_array [0] = 0;
   return test_array [0];
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
     ac_lo=$ac_mid; break
   else
     as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
                           if test $ac_mid -le $ac_hi; then
                             ac_lo= ac_hi=
                             break
                           fi
                           as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     done
   else
     ac_lo= ac_hi=
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   # Binary search between lo and hi bounds.
   while test "x$ac_lo" != "x$ac_hi"; do
     as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $4
   int
   main ()
   {
   static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   test_array [0] = 0;
   return test_array [0];
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
     ac_hi=$ac_mid
   else
     as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   done
   case $ac_lo in #((
   ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   '') ac_retval=1 ;;
   esac
     else
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $4
   static long int longval () { return $2; }
   static unsigned long int ulongval () { return $2; }
   #include <stdio.h>
   #include <stdlib.h>
   int
   main ()
   {
   
     FILE *f = fopen ("conftest.val", "w");
     if (! f)
       return 1;
     if (($2) < 0)
       {
         long int i = longval ();
         if (i != ($2))
           return 1;
         fprintf (f, "%ld", i);
       }
     else
       {
         unsigned long int i = ulongval ();
         if (i != ($2))
           return 1;
         fprintf (f, "%lu", i);
       }
     /* Do not output a trailing newline, as this causes \r\n confusion
        on some platforms.  */
     return ferror (f) || fclose (f) != 0;
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_run "$LINENO"; then :
     echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   else
     ac_retval=1
   fi
   rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     conftest.$ac_objext conftest.beam conftest.$ac_ext
   rm -f conftest.val
   
     fi
     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     as_fn_set_status $ac_retval
   
   } # ac_fn_c_compute_int
 cat >config.log <<_ACEOF  cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
   
It was created by readline $as_me 6.3, which wasIt was created by readline $as_me 8.1, which was
generated by GNU Autoconf 2.68.  Invocation command line wasgenerated by GNU Autoconf 2.69.  Invocation command line was
   
   $ $0 $@    $ $0 $@
   
Line 2273  ac_configure="$SHELL $ac_aux_dir/configure"  # Please  Line 2481  ac_configure="$SHELL $ac_aux_dir/configure"  # Please 
 ac_config_headers="$ac_config_headers config.h"  ac_config_headers="$ac_config_headers config.h"
   
   
LIBVERSION=6.3LIBVERSION=8.1
   
 # Make sure we can run config.sub.  # Make sure we can run config.sub.
 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||  $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Line 2349  case $host_os in *\ *) host_os=`echo "$host_os" | sed  Line 2557  case $host_os in *\ *) host_os=`echo "$host_os" | sed 
   
   
 opt_curses=no  opt_curses=no
 opt_purify=no  
   
   
 # Check whether --with-curses was given.  # Check whether --with-curses was given.
Line 2358  if test "${with_curses+set}" = set; then : Line 2565  if test "${with_curses+set}" = set; then :
 fi  fi
   
   
 # Check whether --with-purify was given.  
 if test "${with_purify+set}" = set; then :  
   withval=$with_purify; opt_purify=$withval  
 fi  
   
   
 if test "$opt_curses" = "yes"; then  if test "$opt_curses" = "yes"; then
         prefer_curses=yes          prefer_curses=yes
 fi  fi
   
 if test "$opt_purify" = yes; then  
         PURIFY="purify"  
 else  
         PURIFY=  
 fi  
   
 opt_multibyte=yes  opt_multibyte=yes
 opt_static_libs=yes  opt_static_libs=yes
 opt_shared_libs=yes  opt_shared_libs=yes
   opt_install_examples=yes
   opt_bracketed_paste_default=yes
   
 # Check whether --enable-multibyte was given.  # Check whether --enable-multibyte was given.
 if test "${enable_multibyte+set}" = set; then :  if test "${enable_multibyte+set}" = set; then :
Line 2393  if test "${enable_static+set}" = set; then : Line 2590  if test "${enable_static+set}" = set; then :
   enableval=$enable_static; opt_static_libs=$enableval    enableval=$enable_static; opt_static_libs=$enableval
 fi  fi
   
   # Check whether --enable-install-examples was given.
   if test "${enable_install_examples+set}" = set; then :
     enableval=$enable_install_examples; opt_install_examples=$enableval
   fi
   
   
   # Check whether --enable-bracketed-paste-default was given.
   if test "${enable_bracketed_paste_default+set}" = set; then :
     enableval=$enable_bracketed_paste_default; opt_bracketed_paste_default=$enableval
   fi
   
   
 if test $opt_multibyte = no; then  if test $opt_multibyte = no; then
 $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h  $as_echo "#define NO_MULTIBYTE_SUPPORT 1" >>confdefs.h
   
 fi  fi
   
   if test $opt_bracketed_paste_default = yes; then
           BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=1'
   else
           BRACKETED_PASTE='-DBRACKETED_PASTE_DEFAULT=0'
   fi
   
   
   
   
 CROSS_COMPILE=  CROSS_COMPILE=
 if test "x$cross_compiling" = "xyes"; then  if test "x$cross_compiling" = "xyes"; then
     case "${host}" in      case "${host}" in
Line 2430  echo "Beginning configuration for readline-$LIBVERSION Line 2645  echo "Beginning configuration for readline-$LIBVERSION
 echo ""  echo ""
   
 # We want these before the checks, so the checks can modify their values.  # We want these before the checks, so the checks can modify their values.
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1test -z "$CFLAGS" && want_auto_cflags=1
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }  $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
Line 2485  do Line 2700  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_CC="${ac_tool_prefix}gcc"      ac_cv_prog_CC="${ac_tool_prefix}gcc"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 2525  do Line 2740  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_ac_ct_CC="gcc"      ac_cv_prog_ac_ct_CC="gcc"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 2578  do Line 2793  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_CC="${ac_tool_prefix}cc"      ac_cv_prog_CC="${ac_tool_prefix}cc"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 2619  do Line 2834  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then      if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes         ac_prog_rejected=yes
        continue         continue
Line 2677  do Line 2892  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 2721  do Line 2936  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_ac_ct_CC="$ac_prog"      ac_cv_prog_ac_ct_CC="$ac_prog"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 3167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext Line 3382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */  /* end confdefs.h.  */
 #include <stdarg.h>  #include <stdarg.h>
 #include <stdio.h>  #include <stdio.h>
#include <sys/types.h>struct stat;
#include <sys/stat.h> 
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */  /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 struct buf { int x; };  struct buf { int x; };
 FILE * (*rcsopen) (struct buf *, struct stat *, int);  FILE * (*rcsopen) (struct buf *, struct stat *, int);
Line 3408  do Line 3622  do
     for ac_prog in grep ggrep; do      for ac_prog in grep ggrep; do
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"        ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue      as_fn_executable_p "$ac_path_GREP" || continue
 # Check for GNU ac_path_GREP and select it if it is found.  # Check for GNU ac_path_GREP and select it if it is found.
   # Check for GNU $ac_path_GREP    # Check for GNU $ac_path_GREP
 case `"$ac_path_GREP" --version 2>&1` in  case `"$ac_path_GREP" --version 2>&1` in
Line 3474  do Line 3688  do
     for ac_prog in egrep; do      for ac_prog in egrep; do
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"        ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue      as_fn_executable_p "$ac_path_EGREP" || continue
 # Check for GNU ac_path_EGREP and select it if it is found.  # Check for GNU ac_path_EGREP and select it if it is found.
   # Check for GNU $ac_path_EGREP    # Check for GNU $ac_path_EGREP
 case `"$ac_path_EGREP" --version 2>&1` in  case `"$ac_path_EGREP" --version 2>&1` in
Line 3681  else Line 3895  else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */  /* end confdefs.h.  */
   
#         define __EXTENSIONS__ 1#         define __EXTENSIONS__ 1
          $ac_includes_default          $ac_includes_default
 int  int
 main ()  main ()
 {  {
Line 3714  $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } Line 3928  $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   
   
   
# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"if test -n "$want_auto_cflags" ; then
         AUTO_CFLAGS="-g ${GCC+-O2}"
         STYLE_CFLAGS="${GCC+-Wno-parentheses} ${GCC+-Wno-format-security}"
 fi
   
 if test $ac_cv_c_compiler_gnu = yes; then  if test $ac_cv_c_compiler_gnu = yes; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
Line 3796  case $as_dir/ in #(( Line 4013  case $as_dir/ in #((
     # by default.      # by default.
     for ac_prog in ginstall scoinst install; do      for ac_prog in ginstall scoinst install; do
       for ac_exec_ext in '' $ac_executable_extensions; do        for ac_exec_ext in '' $ac_executable_extensions; do
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
           if test $ac_prog = install &&            if test $ac_prog = install &&
             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then              grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
             # AIX install.  It has an incompatible calling convention.              # AIX install.  It has an incompatible calling convention.
Line 3869  do Line 4086  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_AR="${ac_tool_prefix}ar"      ac_cv_prog_AR="${ac_tool_prefix}ar"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 3909  do Line 4126  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_ac_ct_AR="ar"      ac_cv_prog_ac_ct_AR="ar"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 3962  do Line 4179  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 4002  do Line 4219  do
   IFS=$as_save_IFS    IFS=$as_save_IFS
   test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
     for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     ac_cv_prog_ac_ct_RANLIB="ranlib"      ac_cv_prog_ac_ct_RANLIB="ranlib"
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2      break 2
Line 4052  else Line 4269  else
 int  int
 main ()  main ()
 {  {
/* FIXME: Include the comments suggested by Paul. */
 #ifndef __cplusplus  #ifndef __cplusplus
  /* Ultrix mips cc rejects this.  */  /* Ultrix mips cc rejects this sort of thing.  */
   typedef int charset[2];    typedef int charset[2];
  const charset cs;  const charset cs = { 0, 0 };
   /* SunOS 4.1.1 cc rejects this.  */    /* SunOS 4.1.1 cc rejects this.  */
   char const *const *pcpcc;    char const *const *pcpcc;
   char **ppc;    char **ppc;
Line 4073  main () Line 4290  main ()
   ++pcpcc;    ++pcpcc;
   ppc = (char**) pcpcc;    ppc = (char**) pcpcc;
   pcpcc = (char const *const *) ppc;    pcpcc = (char const *const *) ppc;
  { /* SCO 3.2v4 cc rejects this.  */  { /* SCO 3.2v4 cc rejects this sort of thing.  */
    char *t;    char tx;
     char *t = &tx;
     char const *s = 0 ? (char *) 0 : (char const *) 0;      char const *s = 0 ? (char *) 0 : (char const *) 0;
   
     *t++ = 0;      *t++ = 0;
Line 4090  main () Line 4308  main ()
     iptr p = 0;      iptr p = 0;
     ++p;      ++p;
   }    }
  { /* AIX XL C 1.02.0.0 rejects this saying  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */         "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    struct s { int j; const int *ap[3]; };    struct s { int j; const int *ap[3]; } bx;
    struct s *b; b->j = 5;    struct s *b = &bx; b->j = 5;
   }    }
   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */    { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
     const int foo = 10;      const int foo = 10;
Line 4149  int Line 4367  int
 main ()  main ()
 {  {
 static int test_array [1 - 2 * !(((char) -1) < 0)];  static int test_array [1 - 2 * !(((char) -1) < 0)];
test_array [0] = 0test_array [0] = 0;
 return test_array [0];
   
   ;    ;
   return 0;    return 0;
Line 4575  fi Line 4794  fi
 fi  fi
   
   
for ac_func in fcntl kill lstatfor ac_func in fcntl kill lstat readlink
 do :  do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Line 4587  _ACEOF Line 4806  _ACEOF
 fi  fi
 done  done
   
for ac_func in memmove putenv select setenv setlocale \for ac_func in fnmatch memmove pselect putenv select setenv setlocale \
                 strcasecmp strpbrk tcgetattr vsnprintf                  strcasecmp strpbrk tcgetattr vsnprintf
 do :  do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Line 4625  fi Line 4844  fi
 done  done
   
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
   $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
   if ${ac_cv_type_uid_t+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   #include <sys/types.h>
   
   _ACEOF
   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     $EGREP "uid_t" >/dev/null 2>&1; then :
     ac_cv_type_uid_t=yes
   else
     ac_cv_type_uid_t=no
   fi
   rm -f conftest*
   
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
   $as_echo "$ac_cv_type_uid_t" >&6; }
   if test $ac_cv_type_uid_t = no; then
   
   $as_echo "#define uid_t int" >>confdefs.h
   
   
   $as_echo "#define gid_t int" >>confdefs.h
   
   fi
   
   for ac_header in unistd.h
   do :
     ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
   if test "x$ac_cv_header_unistd_h" = xyes; then :
     cat >>confdefs.h <<_ACEOF
   #define HAVE_UNISTD_H 1
   _ACEOF
   
   fi
   
   done
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
   $as_echo_n "checking for working chown... " >&6; }
   if ${ac_cv_func_chown_works+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     if test "$cross_compiling" = yes; then :
     ac_cv_func_chown_works=no
   else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   $ac_includes_default
   #include <fcntl.h>
   
   int
   main ()
   {
     char *f = "conftest.chown";
     struct stat before, after;
   
     if (creat (f, 0600) < 0)
       return 1;
     if (stat (f, &before) < 0)
       return 1;
     if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
       return 1;
     if (stat (f, &after) < 0)
       return 1;
     return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_run "$LINENO"; then :
     ac_cv_func_chown_works=yes
   else
     ac_cv_func_chown_works=no
   fi
   rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     conftest.$ac_objext conftest.beam conftest.$ac_ext
   fi
   
   rm -f conftest.chown
   
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
   $as_echo "$ac_cv_func_chown_works" >&6; }
   if test $ac_cv_func_chown_works = yes; then
   
   $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
   
   fi
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
 $as_echo_n "checking for working strcoll... " >&6; }  $as_echo_n "checking for working strcoll... " >&6; }
 if ${ac_cv_func_strcoll_works+:} false; then :  if ${ac_cv_func_strcoll_works+:} false; then :
Line 4680  fi Line 4994  fi
   
 done  done
   
for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.hfor ac_header in sys/ioctl.h sys/pte.h sys/stream.h sys/select.h sys/file.h
 do :  do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Line 4908  _ACEOF Line 5222  _ACEOF
 esac  esac
 rm -rf conftest*  rm -rf conftest*
   fi    fi
   
   
 fi  fi
   
   
Line 5026  else Line 5342  else
 #ifdef HAVE_UNISTD_H  #ifdef HAVE_UNISTD_H
 #include <unistd.h>  #include <unistd.h>
 #endif  #endif
   #include <stdlib.h>
   
 typedef RETSIGTYPE sigfunc();  typedef RETSIGTYPE sigfunc();
   
int nsigint;volatile int nsigint;
   
 #ifdef HAVE_POSIX_SIGNALS  #ifdef HAVE_POSIX_SIGNALS
 sigfunc *  sigfunc *
Line 5056  int s; Line 5373  int s;
   nsigint++;    nsigint++;
 }  }
   
   int
 main()  main()
 {  {
         nsigint = 0;          nsigint = 0;
Line 5106  else Line 5424  else
 #include <sys/types.h>  #include <sys/types.h>
 #include <signal.h>  #include <signal.h>
 #include <setjmp.h>  #include <setjmp.h>
   #include <stdlib.h>
   
   int
 main()  main()
 {  {
 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)  #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
Line 5209  else Line 5529  else
 #if defined (HAVE_LOCALE_H)  #if defined (HAVE_LOCALE_H)
 #include <locale.h>  #include <locale.h>
 #endif  #endif
   #include <string.h>
   #include <stdlib.h>
   
   int
 main(c, v)  main(c, v)
 int     c;  int     c;
 char    *v[];  char    *v[];
Line 5279  else Line 5602  else
 #endif  #endif
 #include <stdio.h>  #include <stdio.h>
 #include <ctype.h>  #include <ctype.h>
   #include <stdlib.h>
   
   int
 main(c, v)  main(c, v)
 int     c;  int     c;
 char    *v[];  char    *v[];
Line 5762  $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>con Line 6087  $as_echo "#define HAVE_STRUCT_DIRENT_D_FILENO 1" >>con
 fi  fi
   
   
   for ac_header in libaudit.h
   do :
     ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
   if test "x$ac_cv_header_libaudit_h" = xyes; then :
     cat >>confdefs.h <<_ACEOF
   #define HAVE_LIBAUDIT_H 1
   _ACEOF
   
   fi
   
   done
   
 ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>  ac_fn_c_check_decl "$LINENO" "AUDIT_USER_TTY" "ac_cv_have_decl_AUDIT_USER_TTY" "#include <linux/audit.h>
 "  "
 if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :  if test "x$ac_cv_have_decl_AUDIT_USER_TTY" = xyes; then :
Line 5949  $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } Line 6286  $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :  if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
   bash_cv_termcap_lib=libncurses    bash_cv_termcap_lib=libncurses
 else  else
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5
   $as_echo_n "checking for tgetent in -lncursesw... " >&6; }
   if ${ac_cv_lib_ncursesw_tgetent+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_check_lib_save_LIBS=$LIBS
   LIBS="-lncursesw  $LIBS"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char tgetent ();
   int
   main ()
   {
   return tgetent ();
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_lib_ncursesw_tgetent=yes
   else
     ac_cv_lib_ncursesw_tgetent=no
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
   LIBS=$ac_check_lib_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5
   $as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; }
   if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then :
     bash_cv_termcap_lib=libncursesw
   else
   bash_cv_termcap_lib=gnutermcap    bash_cv_termcap_lib=gnutermcap
 fi  fi
   
Line 5962  fi Line 6338  fi
   
 fi  fi
   
   fi
   
 if test "X$_bash_needmsg" = "Xyes"; then  if test "X$_bash_needmsg" = "Xyes"; then
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5
 $as_echo_n "checking which library has the termcap functions... " >&6; }  $as_echo_n "checking which library has the termcap functions... " >&6; }
Line 5996  if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; Line 6374  if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a";
                 TERMCAP_LIB=-ltermcap   #default                  TERMCAP_LIB=-ltermcap   #default
         fi          fi
 fi  fi
   # Windows ncurses installation
   if test "$TERMCAP_LIB" = "-lncurses"; then
           for ac_header in ncurses/termcap.h
   do :
     ac_fn_c_check_header_mongrel "$LINENO" "ncurses/termcap.h" "ac_cv_header_ncurses_termcap_h" "$ac_includes_default"
   if test "x$ac_cv_header_ncurses_termcap_h" = xyes; then :
     cat >>confdefs.h <<_ACEOF
   #define HAVE_NCURSES_TERMCAP_H 1
   _ACEOF
   
   fi
   
   done
   
   fi
   
   case "$TERMCAP_LIB" in
   -ltinfo)  TERMCAP_PKG_CONFIG_LIB=tinfo ;;
   -lcurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;;
   -lncurses) TERMCAP_PKG_CONFIG_LIB=ncurses ;;
   -ltermcap) TERMCAP_PKG_CONFIG_LIB=termcap ;;
   *) TERMCAP_PKG_CONFIG_LIB=termcap ;;
   esac
   
   
 for ac_header in wctype.h  for ac_header in wctype.h
 do :  do :
   ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"    ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
Line 6035  fi Line 6436  fi
 done  done
   
   
   for ac_header in mbstr.h
   do :
     ac_fn_c_check_header_mongrel "$LINENO" "mbstr.h" "ac_cv_header_mbstr_h" "$ac_includes_default"
   if test "x$ac_cv_header_mbstr_h" = xyes; then :
     cat >>confdefs.h <<_ACEOF
   #define HAVE_MBSTR_H 1
   _ACEOF
   
   fi
   
   done
   
   
 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"  ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
 if test "x$ac_cv_func_mbrlen" = xyes; then :  if test "x$ac_cv_func_mbrlen" = xyes; then :
   $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h    $as_echo "#define HAVE_MBRLEN 1" >>confdefs.h
Line 6322  if ${bash_cv_wcwidth_broken+:} false; then : Line 6736  if ${bash_cv_wcwidth_broken+:} false; then :
   $as_echo_n "(cached) " >&6    $as_echo_n "(cached) " >&6
 else  else
   if test "$cross_compiling" = yes; then :    if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5  bash_cv_wcwidth_broken=no
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 
as_fn_error $? "cannot run test program while cross compiling 
See \`config.log' for more details" "$LINENO" 5; } 
 else  else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */  /* end confdefs.h.  */
Line 6337  else Line 6748  else
 #include <locale.h>  #include <locale.h>
 #include <wchar.h>  #include <wchar.h>
   
   int
 main(c, v)  main(c, v)
 int     c;  int     c;
 char    **v;  char    **v;
Line 6352  _ACEOF Line 6764  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
   bash_cv_wcwidth_broken=yes    bash_cv_wcwidth_broken=yes
 else  else
  bash_cv_wcwdith_broken=no  bash_cv_wcwidth_broken=no
 fi  fi
 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \  rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   conftest.$ac_objext conftest.beam conftest.$ac_ext    conftest.$ac_objext conftest.beam conftest.$ac_ext
Line 6369  fi Line 6781  fi
   
 if test "$am_cv_func_iconv" = yes; then  if test "$am_cv_func_iconv" = yes; then
         OLDLIBS="$LIBS"          OLDLIBS="$LIBS"
        LIBS="$LIBS $LIBICONV"        LIBS="$LIBS $LIBINTL $LIBICONV"
         for ac_func in locale_charset          for ac_func in locale_charset
 do :  do :
   ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"    ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
Line 6384  done Line 6796  done
         LIBS="$OLDLIBS"          LIBS="$OLDLIBS"
 fi  fi
   
   # The cast to long int works around a bug in the HP C Compiler
   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   # This bug is HP SR number 8606223364.
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
   $as_echo_n "checking size of wchar_t... " >&6; }
   if ${ac_cv_sizeof_wchar_t+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
   
   else
     if test "$ac_cv_type_wchar_t" = yes; then
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   as_fn_error 77 "cannot compute sizeof (wchar_t)
   See \`config.log' for more details" "$LINENO" 5; }
      else
        ac_cv_sizeof_wchar_t=0
      fi
   fi
   
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
   $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
   
   
   
   cat >>confdefs.h <<_ACEOF
   #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
   _ACEOF
   
   
   
   
   
 case "$host_cpu" in  case "$host_cpu" in
 *cray*) LOCAL_CFLAGS=-DCRAY ;;  *cray*) LOCAL_CFLAGS=-DCRAY ;;
 *s390*) LOCAL_CFLAGS=-fsigned-char ;;  *s390*) LOCAL_CFLAGS=-fsigned-char ;;
Line 6393  esac Line 6839  esac
   
 case "$host_os" in  case "$host_os" in
 isc*)   LOCAL_CFLAGS=-Disc386 ;;  isc*)   LOCAL_CFLAGS=-Disc386 ;;
   hpux*)  LOCAL_CFLAGS="-DTGETENT_BROKEN -DTGETFLAG_BROKEN" ;;
 esac  esac
   
 # shared library configuration section  # shared library configuration section
Line 6456  fi Line 6903  fi
   
   
   
   if test "$opt_install_examples" = "yes"; then
           EXAMPLES_INSTALL_TARGET=install-examples
   fi
   
   
 case "$build_os" in  case "$build_os" in
 msdosdjgpp*)    BUILD_DIR=`pwd.exe` ;;  # to prevent //d/path/file  msdosdjgpp*)    BUILD_DIR=`pwd.exe` ;;  # to prevent //d/path/file
 *)              BUILD_DIR=`pwd` ;;  *)              BUILD_DIR=`pwd` ;;
Line 6468  esac Line 6920  esac
   
   
   
   if test -n "$want_auto_cflags"; then
           CFLAGS="$AUTO_CFLAGS"
   fi
   CFLAGS="$CFLAGS $STYLE_CFLAGS"
   
   
   
Line 6484  esac Line 6940  esac
   
   
   
 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"  
   
   ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile readline.pc"
   
 ac_config_commands="$ac_config_commands default"  ac_config_commands="$ac_config_commands default"
   
 cat >confcache <<\_ACEOF  cat >confcache <<\_ACEOF
Line 6895  if (echo >conf$$.file) 2>/dev/null; then Line 7352  if (echo >conf$$.file) 2>/dev/null; then
     # ... but there are two gotchas:      # ... but there are two gotchas:
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.    # In both cases, we have to default to `cp -pR'.
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'      as_ln_s='cp -pR'
   elif ln conf$$.file conf$$ 2>/dev/null; then    elif ln conf$$.file conf$$ 2>/dev/null; then
     as_ln_s=ln      as_ln_s=ln
   else    else
    as_ln_s='cp -p'    as_ln_s='cp -pR'
   fi    fi
 else  else
  as_ln_s='cp -p'  as_ln_s='cp -pR'
 fi  fi
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 rmdir conf$$.dir 2>/dev/null  rmdir conf$$.dir 2>/dev/null
Line 6964  else Line 7421  else
   as_mkdir_p=false    as_mkdir_p=false
 fi  fi
   
 if test -x / >/dev/null 2>&1; then  
   as_test_x='test -x'  
 else  
   if ls -dL / >/dev/null 2>&1; then  
     as_ls_L_option=L  
   else  
     as_ls_L_option=  
   fi  
   as_test_x='  
     eval sh -c '\''  
       if test -d "$1"; then  
         test -d "$1/.";  
       else  
         case $1 in #(  
         -*)set "./$1";;  
         esac;  
         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((  
         ???[sx]*):;;*)false;;esac;fi  
     '\'' sh  
   '  
 fi  
 as_executable_p=$as_test_x  
   
   # as_fn_executable_p FILE
   # -----------------------
   # Test if FILE is an executable regular file.
   as_fn_executable_p ()
   {
     test -f "$1" && test -x "$1"
   } # as_fn_executable_p
   as_test_x='test -x'
   as_executable_p=as_fn_executable_p
   
 # Sed expression to map a string onto a valid CPP name.  # Sed expression to map a string onto a valid CPP name.
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   
Line 7006  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Line 7451  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their  # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.  # values after options handling.
 ac_log="  ac_log="
This file was extended by readline $as_me 6.3, which wasThis file was extended by readline $as_me 8.1, which was
generated by GNU Autoconf 2.68.  Invocation command line wasgenerated by GNU Autoconf 2.69.  Invocation command line was
   
   CONFIG_FILES    = $CONFIG_FILES    CONFIG_FILES    = $CONFIG_FILES
   CONFIG_HEADERS  = $CONFIG_HEADERS    CONFIG_HEADERS  = $CONFIG_HEADERS
Line 7072  _ACEOF Line 7517  _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\  ac_cs_version="\\
readline config.status 6.3readline config.status 8.1
configured by $0, generated by GNU Autoconf 2.68,configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"    with options \\"\$ac_cs_config\\"
   
Copyright (C) 2010 Free Software Foundation, Inc.Copyright (C) 2012 Free Software Foundation, Inc.
 This config.status script is free software; the Free Software Foundation  This config.status script is free software; the Free Software Foundation
 gives unlimited permission to copy, distribute and modify it."  gives unlimited permission to copy, distribute and modify it."
   
Line 7165  fi Line 7610  fi
 _ACEOF  _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 if \$ac_cs_recheck; then  if \$ac_cs_recheck; then
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   shift    shift
   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6    \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   CONFIG_SHELL='$SHELL'    CONFIG_SHELL='$SHELL'
Line 7199  do Line 7644  do
     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;      "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
     "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;      "shlib/Makefile") CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
       "readline.pc") CONFIG_FILES="$CONFIG_FILES readline.pc" ;;
     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;      "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>