aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2003-12-28 16:03:57 +0000
committerKaroly Lorentey2003-12-28 16:03:57 +0000
commit2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02 (patch)
tree6e682f963c37c5cb6610711ec395ed4e82fff7fc
parent53fed860b6a9e8f89eca3fd8a15e49c58aace85d (diff)
parent8af1a978a8f635a9d05f56200ba42613e3574c44 (diff)
downloademacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.tar.gz
emacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-138 Update from CVS * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-139 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-15
-rw-r--r--ChangeLog14
-rw-r--r--Makefile.in4
-rwxr-xr-xconfigure5212
-rw-r--r--configure.in21
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/make-docfile.c6
-rw-r--r--lisp/ChangeLog82
-rw-r--r--lisp/comint.el8
-rw-r--r--lisp/complete.el20
-rw-r--r--lisp/ffap.el2
-rw-r--r--lisp/fringe.el2
-rw-r--r--lisp/gdb-ui.el99
-rw-r--r--lisp/info.el21
-rw-r--r--lisp/international/mule-cmds.el5
-rw-r--r--lisp/international/mule-conf.el8
-rw-r--r--lisp/international/mule.el242
-rw-r--r--lisp/international/ucs-tables.el2
-rw-r--r--lisp/language/cyrillic.el11
-rw-r--r--lisp/progmodes/gud.el16
-rw-r--r--lisp/shell.el2
-rw-r--r--lisp/vc.el4
-rw-r--r--man/ChangeLog11
-rw-r--r--man/building.texi65
-rw-r--r--man/files.texi7
-rw-r--r--nt/.gitignore1
-rw-r--r--nt/ChangeLog4
-rw-r--r--src/ChangeLog38
-rw-r--r--src/coding.c5
-rw-r--r--src/config.in9
-rw-r--r--src/fns.c20
-rw-r--r--src/gtkutil.c2
-rw-r--r--src/minibuf.c150
-rw-r--r--src/regex.c6335
-rw-r--r--src/regex.h576
-rw-r--r--src/tparam.c14
-rw-r--r--src/xfaces.c22
36 files changed, 4298 insertions, 8747 deletions
diff --git a/ChangeLog b/ChangeLog
index cd90ee8db0d..0dbff7b166d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,20 @@
2 2
3 * .cvsignore: Add .arch-inventory. 3 * .cvsignore: Add .arch-inventory.
4 4
52003-12-24 Andreas Schwab <schwab@suse.de>
6
7 * configure.in: Check for <sys/socket.h>. Include it before
8 including <net/if.h>. Move check for <net/if.h> before it's use.
9
102003-12-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
11
12 * Makefile.in (install-arch-dep): Don't let cd output go into
13 pipe for carbon_appdir.
14
152003-12-24 Andreas Schwab <schwab@suse.de>
16
17 * configure.in (PKG_CHECK_MODULES): Fix quoting.
18
52003-12-01 Andreas Schwab <schwab@suse.de> 192003-12-01 Andreas Schwab <schwab@suse.de>
6 20
7 * configure.in (powerpc-apple-darwin*): Use ${CC-cc} instead of 21 * configure.in (powerpc-apple-darwin*): Use ${CC-cc} instead of
diff --git a/Makefile.in b/Makefile.in
index 61264712027..264b99f6d33 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -367,9 +367,9 @@ install-arch-dep: mkdir
367 done 367 done
368 if test "${carbon_appdir}" != ""; then \ 368 if test "${carbon_appdir}" != ""; then \
369 umask 022; mkdir -p ${carbon_appdir}/Emacs.app; \ 369 umask 022; mkdir -p ${carbon_appdir}/Emacs.app; \
370 (cd mac/Emacs.app; tar -chf - . ) | \ 370 (cd mac/Emacs.app; (tar -chf - . | \
371 (cd ${carbon_appdir}/Emacs.app; umask 022; tar -xvf - \ 371 (cd ${carbon_appdir}/Emacs.app; umask 022; tar -xvf - \
372 && cat > /dev/null) || exit 1; \ 372 && cat > /dev/null))) || exit 1; \
373 fi 373 fi
374 374
375### Install the files that are machine-independent. 375### Install the files that are machine-independent.
diff --git a/configure b/configure
index 4f0a3dca61f..1616a51eb46 100755
--- a/configure
+++ b/configure
@@ -1,9 +1,8 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57. 3# Generated by GNU Autoconf 2.59.
4# 4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 5# Copyright (C) 2003 Free Software Foundation, Inc.
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 6# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 7# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 8## --------------------- ##
@@ -20,9 +19,10 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix 20 set -o posix
22fi 21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23 23
24# Support unset when possible. 24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset 26 as_unset=unset
27else 27else
28 as_unset=false 28 as_unset=false
@@ -41,7 +41,7 @@ for as_var in \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME 42 LC_TELEPHONE LC_TIME
43do 43do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var 45 eval $as_var=C; export $as_var
46 else 46 else
47 $as_unset $as_var 47 $as_unset $as_var
@@ -218,16 +218,17 @@ rm -f conf$$ conf$$.exe conf$$.file
218if mkdir -p . 2>/dev/null; then 218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=: 219 as_mkdir_p=:
220else 220else
221 test -d ./-p && rmdir ./-p
221 as_mkdir_p=false 222 as_mkdir_p=false
222fi 223fi
223 224
224as_executable_p="test -f" 225as_executable_p="test -f"
225 226
226# Sed expression to map a string onto a valid CPP name. 227# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228 229
229# Sed expression to map a string onto a valid variable name. 230# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231 232
232 233
233# IFS 234# IFS
@@ -668,7 +669,7 @@ done
668 669
669# Be sure to have absolute paths. 670# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir 672 localstatedir libdir includedir oldincludedir infodir mandir
672do 673do
673 eval ac_val=$`echo $ac_var` 674 eval ac_val=$`echo $ac_var`
674 case $ac_val in 675 case $ac_val in
@@ -708,10 +709,10 @@ if test -z "$srcdir"; then
708 # Try the directory containing this script, then its parent. 709 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \ 714 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null || 715 . : '\(.\)' 2>/dev/null ||
715echo X"$0" | 716echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -803,9 +804,9 @@ _ACEOF
803 cat <<_ACEOF 804 cat <<_ACEOF
804Installation directories: 805Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX 806 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix] 807 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX] 809 [PREFIX]
809 810
810By default, \`make install' will install all the files in 811By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
@@ -928,12 +929,45 @@ case $srcdir in
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;; 930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac 931esac
931# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 932
932# absolute. 933# Do not use `cd foo && pwd` to compute absolute paths, because
933ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 934# the directories may not exist.
934ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 935case `pwd` in
935ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 936.) ac_abs_builddir="$ac_dir";;
936ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 937*)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970esac
937 971
938 cd $ac_dir 972 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure. 973 # Check for guested configure; otherwise get Cygnus style configure.
@@ -944,7 +978,7 @@ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
944 echo 978 echo
945 $SHELL $ac_srcdir/configure --help=recursive 979 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac || 980 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then 981 test -f $ac_srcdir/configure.in; then
948 echo 982 echo
949 $ac_configure --help 983 $ac_configure --help
950 else 984 else
@@ -958,8 +992,7 @@ test -n "$ac_init_help" && exit 0
958if $ac_init_version; then 992if $ac_init_version; then
959 cat <<\_ACEOF 993 cat <<\_ACEOF
960 994
961Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 995Copyright (C) 2003 Free Software Foundation, Inc.
962Free Software Foundation, Inc.
963This configure script is free software; the Free Software Foundation 996This configure script is free software; the Free Software Foundation
964gives unlimited permission to copy, distribute and modify it. 997gives unlimited permission to copy, distribute and modify it.
965_ACEOF 998_ACEOF
@@ -971,7 +1004,7 @@ This file contains any messages produced by compilers while
971running configure, to aid debugging if configure makes a mistake. 1004running configure, to aid debugging if configure makes a mistake.
972 1005
973It was created by $as_me, which was 1006It was created by $as_me, which was
974generated by GNU Autoconf 2.57. Invocation command line was 1007generated by GNU Autoconf 2.59. Invocation command line was
975 1008
976 $ $0 $@ 1009 $ $0 $@
977 1010
@@ -1048,19 +1081,19 @@ do
1048 2) 1081 2)
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then 1083 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal. 1084 ac_must_keep_next=false # Got value, back to normal.
1052 else 1085 else
1053 case $ac_arg in 1086 case $ac_arg in
1054 *=* | --config-cache | -C | -disable-* | --disable-* \ 1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x) 1090 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in 1091 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1060 esac 1093 esac
1061 ;; 1094 ;;
1062 -* ) ac_must_keep_next=true ;; 1095 -* ) ac_must_keep_next=true ;;
1063 esac 1096 esac
1064 fi 1097 fi
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space. 1099 # Get rid of the leading space.
@@ -1094,12 +1127,12 @@ _ASBOX
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 *ac_space=\ *) 1128 *ac_space=\ *)
1096 sed -n \ 1129 sed -n \
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 ;; 1132 ;;
1100 *) 1133 *)
1101 sed -n \ 1134 sed -n \
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1103 ;; 1136 ;;
1104 esac; 1137 esac;
1105} 1138}
@@ -1128,7 +1161,7 @@ _ASBOX
1128 for ac_var in $ac_subst_files 1161 for ac_var in $ac_subst_files
1129 do 1162 do
1130 eval ac_val=$`echo $ac_var` 1163 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'" 1164 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort 1165 done | sort
1133 echo 1166 echo
1134 fi 1167 fi
@@ -1147,7 +1180,7 @@ _ASBOX
1147 echo "$as_me: caught signal $ac_signal" 1180 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status" 1181 echo "$as_me: exit $exit_status"
1149 } >&5 1182 } >&5
1150 rm -f core core.* *.core && 1183 rm -f core *.core &&
1151 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1152 exit $exit_status 1185 exit $exit_status
1153 ' 0 1186 ' 0
@@ -1227,7 +1260,7 @@ fi
1227# value. 1260# value.
1228ac_cache_corrupted=false 1261ac_cache_corrupted=false
1229for ac_var in `(set) 2>&1 | 1262for ac_var in `(set) 2>&1 |
1230 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set 1265 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
@@ -1244,13 +1277,13 @@ echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ,);; 1277 ,);;
1245 *) 1278 *)
1246 if test "x$ac_old_val" != "x$ac_new_val"; then 1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1248echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250echo "$as_me: former value: $ac_old_val" >&2;} 1283echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252echo "$as_me: current value: $ac_new_val" >&2;} 1285echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=: 1286 ac_cache_corrupted=:
1254 fi;; 1287 fi;;
1255 esac 1288 esac
1256 # Pass precious variables to config.status. 1289 # Pass precious variables to config.status.
@@ -2988,7 +3021,6 @@ ac_compiler=`set X $ac_compile; echo $2`
2988 (exit $ac_status); } 3021 (exit $ac_status); }
2989 3022
2990cat >conftest.$ac_ext <<_ACEOF 3023cat >conftest.$ac_ext <<_ACEOF
2991#line $LINENO "configure"
2992/* confdefs.h. */ 3024/* confdefs.h. */
2993_ACEOF 3025_ACEOF
2994cat confdefs.h >>conftest.$ac_ext 3026cat confdefs.h >>conftest.$ac_ext
@@ -3008,8 +3040,8 @@ ac_clean_files="$ac_clean_files a.out a.exe b.out"
3008# Try to create an executable without -o first, disregard a.out. 3040# Try to create an executable without -o first, disregard a.out.
3009# It will help us diagnose broken compilers, and finding out an intuition 3041# It will help us diagnose broken compilers, and finding out an intuition
3010# of exeext. 3042# of exeext.
3011echo "$as_me:$LINENO: checking for C compiler default output" >&5 3043echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3012echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 3044echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3013ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3045ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 3046if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3015 (eval $ac_link_default) 2>&5 3047 (eval $ac_link_default) 2>&5
@@ -3029,23 +3061,23 @@ do
3029 test -f "$ac_file" || continue 3061 test -f "$ac_file" || continue
3030 case $ac_file in 3062 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3032 ;; 3064 ;;
3033 conftest.$ac_ext ) 3065 conftest.$ac_ext )
3034 # This is the source file. 3066 # This is the source file.
3035 ;; 3067 ;;
3036 [ab].out ) 3068 [ab].out )
3037 # We found the default executable, but exeext='' is most 3069 # We found the default executable, but exeext='' is most
3038 # certainly right. 3070 # certainly right.
3039 break;; 3071 break;;
3040 *.* ) 3072 *.* )
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 # FIXME: I believe we export ac_cv_exeext for Libtool, 3074 # FIXME: I believe we export ac_cv_exeext for Libtool,
3043 # but it would be cool to find out if it's true. Does anybody 3075 # but it would be cool to find out if it's true. Does anybody
3044 # maintain Libtool? --akim. 3076 # maintain Libtool? --akim.
3045 export ac_cv_exeext 3077 export ac_cv_exeext
3046 break;; 3078 break;;
3047 * ) 3079 * )
3048 break;; 3080 break;;
3049 esac 3081 esac
3050done 3082done
3051else 3083else
@@ -3119,8 +3151,8 @@ for ac_file in conftest.exe conftest conftest.*; do
3119 case $ac_file in 3151 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 export ac_cv_exeext 3154 export ac_cv_exeext
3123 break;; 3155 break;;
3124 * ) break;; 3156 * ) break;;
3125 esac 3157 esac
3126done 3158done
@@ -3145,7 +3177,6 @@ if test "${ac_cv_objext+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6 3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3146else 3178else
3147 cat >conftest.$ac_ext <<_ACEOF 3179 cat >conftest.$ac_ext <<_ACEOF
3148#line $LINENO "configure"
3149/* confdefs.h. */ 3180/* confdefs.h. */
3150_ACEOF 3181_ACEOF
3151cat confdefs.h >>conftest.$ac_ext 3182cat confdefs.h >>conftest.$ac_ext
@@ -3196,7 +3227,6 @@ if test "${ac_cv_c_compiler_gnu+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6 3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else 3228else
3198 cat >conftest.$ac_ext <<_ACEOF 3229 cat >conftest.$ac_ext <<_ACEOF
3199#line $LINENO "configure"
3200/* confdefs.h. */ 3230/* confdefs.h. */
3201_ACEOF 3231_ACEOF
3202cat confdefs.h >>conftest.$ac_ext 3232cat confdefs.h >>conftest.$ac_ext
@@ -3216,11 +3246,21 @@ main ()
3216_ACEOF 3246_ACEOF
3217rm -f conftest.$ac_objext 3247rm -f conftest.$ac_objext
3218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5 3249 (eval $ac_compile) 2>conftest.er1
3220 ac_status=$? 3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } && 3255 (exit $ac_status); } &&
3223 { ac_try='test -s conftest.$ac_objext' 3256 { ac_try='test -z "$ac_c_werror_flag"
3257 || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5 3265 (eval $ac_try) 2>&5
3226 ac_status=$? 3266 ac_status=$?
@@ -3233,7 +3273,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
3233 3273
3234ac_compiler_gnu=no 3274ac_compiler_gnu=no
3235fi 3275fi
3236rm -f conftest.$ac_objext conftest.$ac_ext 3276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237ac_cv_c_compiler_gnu=$ac_compiler_gnu 3277ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238 3278
3239fi 3279fi
@@ -3249,7 +3289,6 @@ if test "${ac_cv_prog_cc_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6 3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else 3290else
3251 cat >conftest.$ac_ext <<_ACEOF 3291 cat >conftest.$ac_ext <<_ACEOF
3252#line $LINENO "configure"
3253/* confdefs.h. */ 3292/* confdefs.h. */
3254_ACEOF 3293_ACEOF
3255cat confdefs.h >>conftest.$ac_ext 3294cat confdefs.h >>conftest.$ac_ext
@@ -3266,11 +3305,21 @@ main ()
3266_ACEOF 3305_ACEOF
3267rm -f conftest.$ac_objext 3306rm -f conftest.$ac_objext
3268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5 3308 (eval $ac_compile) 2>conftest.er1
3270 ac_status=$? 3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && 3314 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext' 3315 { ac_try='test -z "$ac_c_werror_flag"
3316 || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5 3324 (eval $ac_try) 2>&5
3276 ac_status=$? 3325 ac_status=$?
@@ -3283,7 +3332,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
3283 3332
3284ac_cv_prog_cc_g=no 3333ac_cv_prog_cc_g=no
3285fi 3334fi
3286rm -f conftest.$ac_objext conftest.$ac_ext 3335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3287fi 3336fi
3288echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3337echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3289echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3338echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
@@ -3310,7 +3359,6 @@ else
3310 ac_cv_prog_cc_stdc=no 3359 ac_cv_prog_cc_stdc=no
3311ac_save_CC=$CC 3360ac_save_CC=$CC
3312cat >conftest.$ac_ext <<_ACEOF 3361cat >conftest.$ac_ext <<_ACEOF
3313#line $LINENO "configure"
3314/* confdefs.h. */ 3362/* confdefs.h. */
3315_ACEOF 3363_ACEOF
3316cat confdefs.h >>conftest.$ac_ext 3364cat confdefs.h >>conftest.$ac_ext
@@ -3338,6 +3386,16 @@ static char *f (char * (*g) (char **, int), char **p, ...)
3338 va_end (v); 3386 va_end (v);
3339 return s; 3387 return s;
3340} 3388}
3389
3390/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std1 is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std1. */
3397int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398
3341int test (int i, double x); 3399int test (int i, double x);
3342struct s1 {int (*f) (int a);}; 3400struct s1 {int (*f) (int a);};
3343struct s2 {int (*f) (double a);}; 3401struct s2 {int (*f) (double a);};
@@ -3364,11 +3422,21 @@ do
3364 CC="$ac_save_CC $ac_arg" 3422 CC="$ac_save_CC $ac_arg"
3365 rm -f conftest.$ac_objext 3423 rm -f conftest.$ac_objext
3366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>&5 3425 (eval $ac_compile) 2>conftest.er1
3368 ac_status=$? 3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } && 3431 (exit $ac_status); } &&
3371 { ac_try='test -s conftest.$ac_objext' 3432 { ac_try='test -z "$ac_c_werror_flag"
3433 || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest.$ac_objext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5 3441 (eval $ac_try) 2>&5
3374 ac_status=$? 3442 ac_status=$?
@@ -3381,7 +3449,7 @@ else
3381sed 's/^/| /' conftest.$ac_ext >&5 3449sed 's/^/| /' conftest.$ac_ext >&5
3382 3450
3383fi 3451fi
3384rm -f conftest.$ac_objext 3452rm -f conftest.err conftest.$ac_objext
3385done 3453done
3386rm -f conftest.$ac_ext conftest.$ac_objext 3454rm -f conftest.$ac_ext conftest.$ac_objext
3387CC=$ac_save_CC 3455CC=$ac_save_CC
@@ -3409,19 +3477,28 @@ cat >conftest.$ac_ext <<_ACEOF
3409_ACEOF 3477_ACEOF
3410rm -f conftest.$ac_objext 3478rm -f conftest.$ac_objext
3411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>&5 3480 (eval $ac_compile) 2>conftest.er1
3413 ac_status=$? 3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && 3486 (exit $ac_status); } &&
3416 { ac_try='test -s conftest.$ac_objext' 3487 { ac_try='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5 3496 (eval $ac_try) 2>&5
3419 ac_status=$? 3497 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then 3499 (exit $ac_status); }; }; then
3422 for ac_declaration in \ 3500 for ac_declaration in \
3423 ''\ 3501 '' \
3424 '#include <stdlib.h>' \
3425 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3502 'extern "C" void std::exit (int) throw (); using std::exit;' \
3426 'extern "C" void std::exit (int); using std::exit;' \ 3503 'extern "C" void std::exit (int); using std::exit;' \
3427 'extern "C" void exit (int) throw ();' \ 3504 'extern "C" void exit (int) throw ();' \
@@ -3429,14 +3506,13 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 'void exit (int);' 3506 'void exit (int);'
3430do 3507do
3431 cat >conftest.$ac_ext <<_ACEOF 3508 cat >conftest.$ac_ext <<_ACEOF
3432#line $LINENO "configure"
3433/* confdefs.h. */ 3509/* confdefs.h. */
3434_ACEOF 3510_ACEOF
3435cat confdefs.h >>conftest.$ac_ext 3511cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF 3512cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h. */ 3513/* end confdefs.h. */
3438#include <stdlib.h>
3439$ac_declaration 3514$ac_declaration
3515#include <stdlib.h>
3440int 3516int
3441main () 3517main ()
3442{ 3518{
@@ -3447,11 +3523,21 @@ exit (42);
3447_ACEOF 3523_ACEOF
3448rm -f conftest.$ac_objext 3524rm -f conftest.$ac_objext
3449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5 3526 (eval $ac_compile) 2>conftest.er1
3451 ac_status=$? 3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && 3532 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext' 3533 { ac_try='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 (eval $ac_try) 2>&5 3542 (eval $ac_try) 2>&5
3457 ac_status=$? 3543 ac_status=$?
@@ -3464,9 +3550,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
3464 3550
3465continue 3551continue
3466fi 3552fi
3467rm -f conftest.$ac_objext conftest.$ac_ext 3553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468 cat >conftest.$ac_ext <<_ACEOF 3554 cat >conftest.$ac_ext <<_ACEOF
3469#line $LINENO "configure"
3470/* confdefs.h. */ 3555/* confdefs.h. */
3471_ACEOF 3556_ACEOF
3472cat confdefs.h >>conftest.$ac_ext 3557cat confdefs.h >>conftest.$ac_ext
@@ -3483,11 +3568,21 @@ exit (42);
3483_ACEOF 3568_ACEOF
3484rm -f conftest.$ac_objext 3569rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5 3571 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$? 3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && 3577 (exit $ac_status); } &&
3490 { ac_try='test -s conftest.$ac_objext' 3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5 3587 (eval $ac_try) 2>&5
3493 ac_status=$? 3588 ac_status=$?
@@ -3499,7 +3594,7 @@ else
3499sed 's/^/| /' conftest.$ac_ext >&5 3594sed 's/^/| /' conftest.$ac_ext >&5
3500 3595
3501fi 3596fi
3502rm -f conftest.$ac_objext conftest.$ac_ext 3597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503done 3598done
3504rm -f conftest* 3599rm -f conftest*
3505if test -n "$ac_declaration"; then 3600if test -n "$ac_declaration"; then
@@ -3513,7 +3608,7 @@ else
3513sed 's/^/| /' conftest.$ac_ext >&5 3608sed 's/^/| /' conftest.$ac_ext >&5
3514 3609
3515fi 3610fi
3516rm -f conftest.$ac_objext conftest.$ac_ext 3611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517ac_ext=c 3612ac_ext=c
3518ac_cpp='$CPP $CPPFLAGS' 3613ac_cpp='$CPP $CPPFLAGS'
3519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3594,7 +3689,6 @@ do
3594 # On the NeXT, cc -E runs the code through the compiler's parser, 3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3595 # not just through cpp. "Syntax error" is here to catch this case. 3690 # not just through cpp. "Syntax error" is here to catch this case.
3596 cat >conftest.$ac_ext <<_ACEOF 3691 cat >conftest.$ac_ext <<_ACEOF
3597#line $LINENO "configure"
3598/* confdefs.h. */ 3692/* confdefs.h. */
3599_ACEOF 3693_ACEOF
3600cat confdefs.h >>conftest.$ac_ext 3694cat confdefs.h >>conftest.$ac_ext
@@ -3605,7 +3699,7 @@ cat >>conftest.$ac_ext <<_ACEOF
3605#else 3699#else
3606# include <assert.h> 3700# include <assert.h>
3607#endif 3701#endif
3608 Syntax error 3702 Syntax error
3609_ACEOF 3703_ACEOF
3610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -3617,6 +3711,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617 (exit $ac_status); } >/dev/null; then 3711 (exit $ac_status); } >/dev/null; then
3618 if test -s conftest.err; then 3712 if test -s conftest.err; then
3619 ac_cpp_err=$ac_c_preproc_warn_flag 3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3620 else 3715 else
3621 ac_cpp_err= 3716 ac_cpp_err=
3622 fi 3717 fi
@@ -3637,7 +3732,6 @@ rm -f conftest.err conftest.$ac_ext
3637 # OK, works on sane cases. Now check whether non-existent headers 3732 # OK, works on sane cases. Now check whether non-existent headers
3638 # can be detected and how. 3733 # can be detected and how.
3639 cat >conftest.$ac_ext <<_ACEOF 3734 cat >conftest.$ac_ext <<_ACEOF
3640#line $LINENO "configure"
3641/* confdefs.h. */ 3735/* confdefs.h. */
3642_ACEOF 3736_ACEOF
3643cat confdefs.h >>conftest.$ac_ext 3737cat confdefs.h >>conftest.$ac_ext
@@ -3655,6 +3749,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 (exit $ac_status); } >/dev/null; then 3749 (exit $ac_status); } >/dev/null; then
3656 if test -s conftest.err; then 3750 if test -s conftest.err; then
3657 ac_cpp_err=$ac_c_preproc_warn_flag 3751 ac_cpp_err=$ac_c_preproc_warn_flag
3752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3658 else 3753 else
3659 ac_cpp_err= 3754 ac_cpp_err=
3660 fi 3755 fi
@@ -3701,7 +3796,6 @@ do
3701 # On the NeXT, cc -E runs the code through the compiler's parser, 3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case. 3797 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat >conftest.$ac_ext <<_ACEOF 3798 cat >conftest.$ac_ext <<_ACEOF
3704#line $LINENO "configure"
3705/* confdefs.h. */ 3799/* confdefs.h. */
3706_ACEOF 3800_ACEOF
3707cat confdefs.h >>conftest.$ac_ext 3801cat confdefs.h >>conftest.$ac_ext
@@ -3712,7 +3806,7 @@ cat >>conftest.$ac_ext <<_ACEOF
3712#else 3806#else
3713# include <assert.h> 3807# include <assert.h>
3714#endif 3808#endif
3715 Syntax error 3809 Syntax error
3716_ACEOF 3810_ACEOF
3717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -3724,6 +3818,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (exit $ac_status); } >/dev/null; then 3818 (exit $ac_status); } >/dev/null; then
3725 if test -s conftest.err; then 3819 if test -s conftest.err; then
3726 ac_cpp_err=$ac_c_preproc_warn_flag 3820 ac_cpp_err=$ac_c_preproc_warn_flag
3821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727 else 3822 else
3728 ac_cpp_err= 3823 ac_cpp_err=
3729 fi 3824 fi
@@ -3744,7 +3839,6 @@ rm -f conftest.err conftest.$ac_ext
3744 # OK, works on sane cases. Now check whether non-existent headers 3839 # OK, works on sane cases. Now check whether non-existent headers
3745 # can be detected and how. 3840 # can be detected and how.
3746 cat >conftest.$ac_ext <<_ACEOF 3841 cat >conftest.$ac_ext <<_ACEOF
3747#line $LINENO "configure"
3748/* confdefs.h. */ 3842/* confdefs.h. */
3749_ACEOF 3843_ACEOF
3750cat confdefs.h >>conftest.$ac_ext 3844cat confdefs.h >>conftest.$ac_ext
@@ -3762,6 +3856,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (exit $ac_status); } >/dev/null; then 3856 (exit $ac_status); } >/dev/null; then
3763 if test -s conftest.err; then 3857 if test -s conftest.err; then
3764 ac_cpp_err=$ac_c_preproc_warn_flag 3858 ac_cpp_err=$ac_c_preproc_warn_flag
3859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3765 else 3860 else
3766 ac_cpp_err= 3861 ac_cpp_err=
3767 fi 3862 fi
@@ -3811,6 +3906,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3812# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3813# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909# OS/2's system install, which has a completely different semantic
3814# ./install, which can be erroneously created by make from ./install.sh. 3910# ./install, which can be erroneously created by make from ./install.sh.
3815echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3911echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3816echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3912echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
@@ -3827,6 +3923,7 @@ do
3827case $as_dir/ in 3923case $as_dir/ in
3828 ./ | .// | /cC/* | \ 3924 ./ | .// | /cC/* | \
3829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3830 /usr/ucb/* ) ;; 3927 /usr/ucb/* ) ;;
3831 *) 3928 *)
3832 # OSF1 and SCO ODT 3.0 have their own names for install. 3929 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -3834,20 +3931,20 @@ case $as_dir/ in
3834 # by default. 3931 # by default.
3835 for ac_prog in ginstall scoinst install; do 3932 for ac_prog in ginstall scoinst install; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do 3933 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3934 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3838 if test $ac_prog = install && 3935 if test $ac_prog = install &&
3839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840 # AIX install. It has an incompatible calling convention. 3937 # AIX install. It has an incompatible calling convention.
3841 : 3938 :
3842 elif test $ac_prog = install && 3939 elif test $ac_prog = install &&
3843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3844 # program-specific install script used by HP pwplus--don't use. 3941 # program-specific install script used by HP pwplus--don't use.
3845 : 3942 :
3846 else 3943 else
3847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848 break 3 3945 break 3
3849 fi 3946 fi
3850 fi 3947 fi
3851 done 3948 done
3852 done 3949 done
3853 ;; 3950 ;;
@@ -4110,7 +4207,6 @@ echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4110echo "$as_me:$LINENO: checking for AIX" >&5 4207echo "$as_me:$LINENO: checking for AIX" >&5
4111echo $ECHO_N "checking for AIX... $ECHO_C" >&6 4208echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4112cat >conftest.$ac_ext <<_ACEOF 4209cat >conftest.$ac_ext <<_ACEOF
4113#line $LINENO "configure"
4114/* confdefs.h. */ 4210/* confdefs.h. */
4115_ACEOF 4211_ACEOF
4116cat confdefs.h >>conftest.$ac_ext 4212cat confdefs.h >>conftest.$ac_ext
@@ -4309,8 +4405,7 @@ else
4309 while :; do 4405 while :; do
4310 # IRIX 6.2 and later do not support large files by default, 4406 # IRIX 6.2 and later do not support large files by default,
4311 # so use the C compiler's -n32 option if that helps. 4407 # so use the C compiler's -n32 option if that helps.
4312 cat >conftest.$ac_ext <<_ACEOF 4408 cat >conftest.$ac_ext <<_ACEOF
4313#line $LINENO "configure"
4314/* confdefs.h. */ 4409/* confdefs.h. */
4315_ACEOF 4410_ACEOF
4316cat confdefs.h >>conftest.$ac_ext 4411cat confdefs.h >>conftest.$ac_ext
@@ -4335,11 +4430,21 @@ main ()
4335_ACEOF 4430_ACEOF
4336 rm -f conftest.$ac_objext 4431 rm -f conftest.$ac_objext
4337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5 4433 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$? 4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && 4439 (exit $ac_status); } &&
4342 { ac_try='test -s conftest.$ac_objext' 4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5 4449 (eval $ac_try) 2>&5
4345 ac_status=$? 4450 ac_status=$?
@@ -4351,15 +4456,25 @@ else
4351sed 's/^/| /' conftest.$ac_ext >&5 4456sed 's/^/| /' conftest.$ac_ext >&5
4352 4457
4353fi 4458fi
4354rm -f conftest.$ac_objext 4459rm -f conftest.err conftest.$ac_objext
4355 CC="$CC -n32" 4460 CC="$CC -n32"
4356 rm -f conftest.$ac_objext 4461 rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>&5 4463 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$? 4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } && 4469 (exit $ac_status); } &&
4362 { ac_try='test -s conftest.$ac_objext' 4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 (eval $ac_try) 2>&5 4479 (eval $ac_try) 2>&5
4365 ac_status=$? 4480 ac_status=$?
@@ -4371,8 +4486,8 @@ else
4371sed 's/^/| /' conftest.$ac_ext >&5 4486sed 's/^/| /' conftest.$ac_ext >&5
4372 4487
4373fi 4488fi
4374rm -f conftest.$ac_objext 4489rm -f conftest.err conftest.$ac_objext
4375 break 4490 break
4376 done 4491 done
4377 CC=$ac_save_CC 4492 CC=$ac_save_CC
4378 rm -f conftest.$ac_ext 4493 rm -f conftest.$ac_ext
@@ -4392,7 +4507,6 @@ else
4392 while :; do 4507 while :; do
4393 ac_cv_sys_file_offset_bits=no 4508 ac_cv_sys_file_offset_bits=no
4394 cat >conftest.$ac_ext <<_ACEOF 4509 cat >conftest.$ac_ext <<_ACEOF
4395#line $LINENO "configure"
4396/* confdefs.h. */ 4510/* confdefs.h. */
4397_ACEOF 4511_ACEOF
4398cat confdefs.h >>conftest.$ac_ext 4512cat confdefs.h >>conftest.$ac_ext
@@ -4417,11 +4531,21 @@ main ()
4417_ACEOF 4531_ACEOF
4418rm -f conftest.$ac_objext 4532rm -f conftest.$ac_objext
4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>&5 4534 (eval $ac_compile) 2>conftest.er1
4421 ac_status=$? 4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && 4540 (exit $ac_status); } &&
4424 { ac_try='test -s conftest.$ac_objext' 4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5 4550 (eval $ac_try) 2>&5
4427 ac_status=$? 4551 ac_status=$?
@@ -4433,9 +4557,8 @@ else
4433sed 's/^/| /' conftest.$ac_ext >&5 4557sed 's/^/| /' conftest.$ac_ext >&5
4434 4558
4435fi 4559fi
4436rm -f conftest.$ac_objext conftest.$ac_ext 4560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437 cat >conftest.$ac_ext <<_ACEOF 4561 cat >conftest.$ac_ext <<_ACEOF
4438#line $LINENO "configure"
4439/* confdefs.h. */ 4562/* confdefs.h. */
4440_ACEOF 4563_ACEOF
4441cat confdefs.h >>conftest.$ac_ext 4564cat confdefs.h >>conftest.$ac_ext
@@ -4461,11 +4584,21 @@ main ()
4461_ACEOF 4584_ACEOF
4462rm -f conftest.$ac_objext 4585rm -f conftest.$ac_objext
4463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5 4587 (eval $ac_compile) 2>conftest.er1
4465 ac_status=$? 4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && 4593 (exit $ac_status); } &&
4468 { ac_try='test -s conftest.$ac_objext' 4594 { ac_try='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5 4603 (eval $ac_try) 2>&5
4471 ac_status=$? 4604 ac_status=$?
@@ -4477,7 +4610,7 @@ else
4477sed 's/^/| /' conftest.$ac_ext >&5 4610sed 's/^/| /' conftest.$ac_ext >&5
4478 4611
4479fi 4612fi
4480rm -f conftest.$ac_objext conftest.$ac_ext 4613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 break 4614 break
4482done 4615done
4483fi 4616fi
@@ -4499,7 +4632,6 @@ else
4499 while :; do 4632 while :; do
4500 ac_cv_sys_large_files=no 4633 ac_cv_sys_large_files=no
4501 cat >conftest.$ac_ext <<_ACEOF 4634 cat >conftest.$ac_ext <<_ACEOF
4502#line $LINENO "configure"
4503/* confdefs.h. */ 4635/* confdefs.h. */
4504_ACEOF 4636_ACEOF
4505cat confdefs.h >>conftest.$ac_ext 4637cat confdefs.h >>conftest.$ac_ext
@@ -4524,11 +4656,21 @@ main ()
4524_ACEOF 4656_ACEOF
4525rm -f conftest.$ac_objext 4657rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5 4659 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$? 4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && 4665 (exit $ac_status); } &&
4531 { ac_try='test -s conftest.$ac_objext' 4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5 4675 (eval $ac_try) 2>&5
4534 ac_status=$? 4676 ac_status=$?
@@ -4540,9 +4682,8 @@ else
4540sed 's/^/| /' conftest.$ac_ext >&5 4682sed 's/^/| /' conftest.$ac_ext >&5
4541 4683
4542fi 4684fi
4543rm -f conftest.$ac_objext conftest.$ac_ext 4685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4544 cat >conftest.$ac_ext <<_ACEOF 4686 cat >conftest.$ac_ext <<_ACEOF
4545#line $LINENO "configure"
4546/* confdefs.h. */ 4687/* confdefs.h. */
4547_ACEOF 4688_ACEOF
4548cat confdefs.h >>conftest.$ac_ext 4689cat confdefs.h >>conftest.$ac_ext
@@ -4568,11 +4709,21 @@ main ()
4568_ACEOF 4709_ACEOF
4569rm -f conftest.$ac_objext 4710rm -f conftest.$ac_objext
4570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>&5 4712 (eval $ac_compile) 2>conftest.er1
4572 ac_status=$? 4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && 4718 (exit $ac_status); } &&
4575 { ac_try='test -s conftest.$ac_objext' 4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5 4728 (eval $ac_try) 2>&5
4578 ac_status=$? 4729 ac_status=$?
@@ -4584,7 +4735,7 @@ else
4584sed 's/^/| /' conftest.$ac_ext >&5 4735sed 's/^/| /' conftest.$ac_ext >&5
4585 4736
4586fi 4737fi
4587rm -f conftest.$ac_objext conftest.$ac_ext 4738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588 break 4739 break
4589done 4740done
4590fi 4741fi
@@ -4609,7 +4760,6 @@ if test "${ac_cv_header_stdc+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6 4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else 4761else
4611 cat >conftest.$ac_ext <<_ACEOF 4762 cat >conftest.$ac_ext <<_ACEOF
4612#line $LINENO "configure"
4613/* confdefs.h. */ 4763/* confdefs.h. */
4614_ACEOF 4764_ACEOF
4615cat confdefs.h >>conftest.$ac_ext 4765cat confdefs.h >>conftest.$ac_ext
@@ -4630,11 +4780,21 @@ main ()
4630_ACEOF 4780_ACEOF
4631rm -f conftest.$ac_objext 4781rm -f conftest.$ac_objext
4632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>&5 4783 (eval $ac_compile) 2>conftest.er1
4634 ac_status=$? 4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && 4789 (exit $ac_status); } &&
4637 { ac_try='test -s conftest.$ac_objext' 4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5 4799 (eval $ac_try) 2>&5
4640 ac_status=$? 4800 ac_status=$?
@@ -4647,12 +4807,11 @@ sed 's/^/| /' conftest.$ac_ext >&5
4647 4807
4648ac_cv_header_stdc=no 4808ac_cv_header_stdc=no
4649fi 4809fi
4650rm -f conftest.$ac_objext conftest.$ac_ext 4810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651 4811
4652if test $ac_cv_header_stdc = yes; then 4812if test $ac_cv_header_stdc = yes; then
4653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4654 cat >conftest.$ac_ext <<_ACEOF 4814 cat >conftest.$ac_ext <<_ACEOF
4655#line $LINENO "configure"
4656/* confdefs.h. */ 4815/* confdefs.h. */
4657_ACEOF 4816_ACEOF
4658cat confdefs.h >>conftest.$ac_ext 4817cat confdefs.h >>conftest.$ac_ext
@@ -4674,7 +4833,6 @@ fi
4674if test $ac_cv_header_stdc = yes; then 4833if test $ac_cv_header_stdc = yes; then
4675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4676 cat >conftest.$ac_ext <<_ACEOF 4835 cat >conftest.$ac_ext <<_ACEOF
4677#line $LINENO "configure"
4678/* confdefs.h. */ 4836/* confdefs.h. */
4679_ACEOF 4837_ACEOF
4680cat confdefs.h >>conftest.$ac_ext 4838cat confdefs.h >>conftest.$ac_ext
@@ -4699,7 +4857,6 @@ if test $ac_cv_header_stdc = yes; then
4699 : 4857 :
4700else 4858else
4701 cat >conftest.$ac_ext <<_ACEOF 4859 cat >conftest.$ac_ext <<_ACEOF
4702#line $LINENO "configure"
4703/* confdefs.h. */ 4860/* confdefs.h. */
4704_ACEOF 4861_ACEOF
4705cat confdefs.h >>conftest.$ac_ext 4862cat confdefs.h >>conftest.$ac_ext
@@ -4711,9 +4868,9 @@ cat >>conftest.$ac_ext <<_ACEOF
4711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4868# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4712#else 4869#else
4713# define ISLOWER(c) \ 4870# define ISLOWER(c) \
4714 (('a' <= (c) && (c) <= 'i') \ 4871 (('a' <= (c) && (c) <= 'i') \
4715 || ('j' <= (c) && (c) <= 'r') \ 4872 || ('j' <= (c) && (c) <= 'r') \
4716 || ('s' <= (c) && (c) <= 'z')) 4873 || ('s' <= (c) && (c) <= 'z'))
4717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4874# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4718#endif 4875#endif
4719 4876
@@ -4724,7 +4881,7 @@ main ()
4724 int i; 4881 int i;
4725 for (i = 0; i < 256; i++) 4882 for (i = 0; i < 256; i++)
4726 if (XOR (islower (i), ISLOWER (i)) 4883 if (XOR (islower (i), ISLOWER (i))
4727 || toupper (i) != TOUPPER (i)) 4884 || toupper (i) != TOUPPER (i))
4728 exit(2); 4885 exit(2);
4729 exit (0); 4886 exit (0);
4730} 4887}
@@ -4749,7 +4906,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
4749( exit $ac_status ) 4906( exit $ac_status )
4750ac_cv_header_stdc=no 4907ac_cv_header_stdc=no
4751fi 4908fi
4752rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4753fi 4910fi
4754fi 4911fi
4755fi 4912fi
@@ -4774,7 +4931,7 @@ fi
4774 4931
4775 4932
4776for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4933for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4777 inttypes.h stdint.h unistd.h 4934 inttypes.h stdint.h unistd.h
4778do 4935do
4779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780echo "$as_me:$LINENO: checking for $ac_header" >&5 4937echo "$as_me:$LINENO: checking for $ac_header" >&5
@@ -4783,7 +4940,6 @@ if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else 4941else
4785 cat >conftest.$ac_ext <<_ACEOF 4942 cat >conftest.$ac_ext <<_ACEOF
4786#line $LINENO "configure"
4787/* confdefs.h. */ 4943/* confdefs.h. */
4788_ACEOF 4944_ACEOF
4789cat confdefs.h >>conftest.$ac_ext 4945cat confdefs.h >>conftest.$ac_ext
@@ -4795,11 +4951,21 @@ $ac_includes_default
4795_ACEOF 4951_ACEOF
4796rm -f conftest.$ac_objext 4952rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>&5 4954 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$? 4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && 4960 (exit $ac_status); } &&
4802 { ac_try='test -s conftest.$ac_objext' 4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5 4970 (eval $ac_try) 2>&5
4805 ac_status=$? 4971 ac_status=$?
@@ -4812,7 +4978,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
4812 4978
4813eval "$as_ac_Header=no" 4979eval "$as_ac_Header=no"
4814fi 4980fi
4815rm -f conftest.$ac_objext conftest.$ac_ext 4981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816fi 4982fi
4817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -4845,7 +5011,6 @@ else
4845echo "$as_me:$LINENO: checking $ac_header usability" >&5 5011echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847cat >conftest.$ac_ext <<_ACEOF 5013cat >conftest.$ac_ext <<_ACEOF
4848#line $LINENO "configure"
4849/* confdefs.h. */ 5014/* confdefs.h. */
4850_ACEOF 5015_ACEOF
4851cat confdefs.h >>conftest.$ac_ext 5016cat confdefs.h >>conftest.$ac_ext
@@ -4856,11 +5021,21 @@ $ac_includes_default
4856_ACEOF 5021_ACEOF
4857rm -f conftest.$ac_objext 5022rm -f conftest.$ac_objext
4858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5 5024 (eval $ac_compile) 2>conftest.er1
4860 ac_status=$? 5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && 5030 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext' 5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5 5040 (eval $ac_try) 2>&5
4866 ac_status=$? 5041 ac_status=$?
@@ -4873,7 +5048,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
4873 5048
4874ac_header_compiler=no 5049ac_header_compiler=no
4875fi 5050fi
4876rm -f conftest.$ac_objext conftest.$ac_ext 5051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878echo "${ECHO_T}$ac_header_compiler" >&6 5053echo "${ECHO_T}$ac_header_compiler" >&6
4879 5054
@@ -4881,7 +5056,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
4881echo "$as_me:$LINENO: checking $ac_header presence" >&5 5056echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5057echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4883cat >conftest.$ac_ext <<_ACEOF 5058cat >conftest.$ac_ext <<_ACEOF
4884#line $LINENO "configure"
4885/* confdefs.h. */ 5059/* confdefs.h. */
4886_ACEOF 5060_ACEOF
4887cat confdefs.h >>conftest.$ac_ext 5061cat confdefs.h >>conftest.$ac_ext
@@ -4899,6 +5073,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4899 (exit $ac_status); } >/dev/null; then 5073 (exit $ac_status); } >/dev/null; then
4900 if test -s conftest.err; then 5074 if test -s conftest.err; then
4901 ac_cpp_err=$ac_c_preproc_warn_flag 5075 ac_cpp_err=$ac_c_preproc_warn_flag
5076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4902 else 5077 else
4903 ac_cpp_err= 5078 ac_cpp_err=
4904 fi 5079 fi
@@ -4918,33 +5093,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918echo "${ECHO_T}$ac_header_preproc" >&6 5093echo "${ECHO_T}$ac_header_preproc" >&6
4919 5094
4920# So? What about this header? 5095# So? What about this header?
4921case $ac_header_compiler:$ac_header_preproc in 5096case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4922 yes:no ) 5097 yes:no: )
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5099echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5101echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4927 ( 5102 ac_header_preproc=yes
4928 cat <<\_ASBOX
4929## ------------------------------------ ##
4930## Report this to bug-autoconf@gnu.org. ##
4931## ------------------------------------ ##
4932_ASBOX
4933 ) |
4934 sed "s/^/$as_me: WARNING: /" >&2
4935 ;; 5103 ;;
4936 no:yes ) 5104 no:yes:* )
4937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5106echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5108echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5110echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5112echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5116echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4943 ( 5117 (
4944 cat <<\_ASBOX 5118 cat <<\_ASBOX
4945## ------------------------------------ ## 5119## ------------------------------------------ ##
4946## Report this to bug-autoconf@gnu.org. ## 5120## Report this to the AC_PACKAGE_NAME lists. ##
4947## ------------------------------------ ## 5121## ------------------------------------------ ##
4948_ASBOX 5122_ASBOX
4949 ) | 5123 ) |
4950 sed "s/^/$as_me: WARNING: /" >&2 5124 sed "s/^/$as_me: WARNING: /" >&2
@@ -4955,7 +5129,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4955if eval "test \"\${$as_ac_Header+set}\" = set"; then 5129if eval "test \"\${$as_ac_Header+set}\" = set"; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6 5130 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else 5131else
4958 eval "$as_ac_Header=$ac_header_preproc" 5132 eval "$as_ac_Header=\$ac_header_preproc"
4959fi 5133fi
4960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -4979,7 +5153,6 @@ else
4979 ac_check_lib_save_LIBS=$LIBS 5153 ac_check_lib_save_LIBS=$LIBS
4980LIBS="-lossaudio $LIBS" 5154LIBS="-lossaudio $LIBS"
4981cat >conftest.$ac_ext <<_ACEOF 5155cat >conftest.$ac_ext <<_ACEOF
4982#line $LINENO "configure"
4983/* confdefs.h. */ 5156/* confdefs.h. */
4984_ACEOF 5157_ACEOF
4985cat confdefs.h >>conftest.$ac_ext 5158cat confdefs.h >>conftest.$ac_ext
@@ -5003,11 +5176,21 @@ _oss_ioctl ();
5003_ACEOF 5176_ACEOF
5004rm -f conftest.$ac_objext conftest$ac_exeext 5177rm -f conftest.$ac_objext conftest$ac_exeext
5005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5 5179 (eval $ac_link) 2>conftest.er1
5007 ac_status=$? 5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } && 5185 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext' 5186 { ac_try='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5 5195 (eval $ac_try) 2>&5
5013 ac_status=$? 5196 ac_status=$?
@@ -5020,7 +5203,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
5020 5203
5021ac_cv_lib_ossaudio__oss_ioctl=no 5204ac_cv_lib_ossaudio__oss_ioctl=no
5022fi 5205fi
5023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5206rm -f conftest.err conftest.$ac_objext \
5207 conftest$ac_exeext conftest.$ac_ext
5024LIBS=$ac_check_lib_save_LIBS 5208LIBS=$ac_check_lib_save_LIBS
5025fi 5209fi
5026echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 5210echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
@@ -5076,7 +5260,6 @@ else
5076echo "$as_me:$LINENO: checking $ac_header usability" >&5 5260echo "$as_me:$LINENO: checking $ac_header usability" >&5
5077echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5078cat >conftest.$ac_ext <<_ACEOF 5262cat >conftest.$ac_ext <<_ACEOF
5079#line $LINENO "configure"
5080/* confdefs.h. */ 5263/* confdefs.h. */
5081_ACEOF 5264_ACEOF
5082cat confdefs.h >>conftest.$ac_ext 5265cat confdefs.h >>conftest.$ac_ext
@@ -5087,11 +5270,21 @@ $ac_includes_default
5087_ACEOF 5270_ACEOF
5088rm -f conftest.$ac_objext 5271rm -f conftest.$ac_objext
5089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5 5273 (eval $ac_compile) 2>conftest.er1
5091 ac_status=$? 5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && 5279 (exit $ac_status); } &&
5094 { ac_try='test -s conftest.$ac_objext' 5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 (eval $ac_try) 2>&5 5289 (eval $ac_try) 2>&5
5097 ac_status=$? 5290 ac_status=$?
@@ -5104,7 +5297,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5104 5297
5105ac_header_compiler=no 5298ac_header_compiler=no
5106fi 5299fi
5107rm -f conftest.$ac_objext conftest.$ac_ext 5300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5109echo "${ECHO_T}$ac_header_compiler" >&6 5302echo "${ECHO_T}$ac_header_compiler" >&6
5110 5303
@@ -5112,7 +5305,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
5112echo "$as_me:$LINENO: checking $ac_header presence" >&5 5305echo "$as_me:$LINENO: checking $ac_header presence" >&5
5113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5114cat >conftest.$ac_ext <<_ACEOF 5307cat >conftest.$ac_ext <<_ACEOF
5115#line $LINENO "configure"
5116/* confdefs.h. */ 5308/* confdefs.h. */
5117_ACEOF 5309_ACEOF
5118cat confdefs.h >>conftest.$ac_ext 5310cat confdefs.h >>conftest.$ac_ext
@@ -5130,6 +5322,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (exit $ac_status); } >/dev/null; then 5322 (exit $ac_status); } >/dev/null; then
5131 if test -s conftest.err; then 5323 if test -s conftest.err; then
5132 ac_cpp_err=$ac_c_preproc_warn_flag 5324 ac_cpp_err=$ac_c_preproc_warn_flag
5325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5133 else 5326 else
5134 ac_cpp_err= 5327 ac_cpp_err=
5135 fi 5328 fi
@@ -5149,33 +5342,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5149echo "${ECHO_T}$ac_header_preproc" >&6 5342echo "${ECHO_T}$ac_header_preproc" >&6
5150 5343
5151# So? What about this header? 5344# So? What about this header?
5152case $ac_header_compiler:$ac_header_preproc in 5345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5153 yes:no ) 5346 yes:no: )
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5158 ( 5351 ac_header_preproc=yes
5159 cat <<\_ASBOX
5160## ------------------------------------ ##
5161## Report this to bug-autoconf@gnu.org. ##
5162## ------------------------------------ ##
5163_ASBOX
5164 ) |
5165 sed "s/^/$as_me: WARNING: /" >&2
5166 ;; 5352 ;;
5167 no:yes ) 5353 no:yes:* )
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5174 ( 5366 (
5175 cat <<\_ASBOX 5367 cat <<\_ASBOX
5176## ------------------------------------ ## 5368## ------------------------------------------ ##
5177## Report this to bug-autoconf@gnu.org. ## 5369## Report this to the AC_PACKAGE_NAME lists. ##
5178## ------------------------------------ ## 5370## ------------------------------------------ ##
5179_ASBOX 5371_ASBOX
5180 ) | 5372 ) |
5181 sed "s/^/$as_me: WARNING: /" >&2 5373 sed "s/^/$as_me: WARNING: /" >&2
@@ -5186,7 +5378,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5186if eval "test \"\${$as_ac_Header+set}\" = set"; then 5378if eval "test \"\${$as_ac_Header+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else 5380else
5189 eval "$as_ac_Header=$ac_header_preproc" 5381 eval "$as_ac_Header=\$ac_header_preproc"
5190fi 5382fi
5191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -5211,7 +5403,6 @@ if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6 5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else 5404else
5213 cat >conftest.$ac_ext <<_ACEOF 5405 cat >conftest.$ac_ext <<_ACEOF
5214#line $LINENO "configure"
5215/* confdefs.h. */ 5406/* confdefs.h. */
5216_ACEOF 5407_ACEOF
5217cat confdefs.h >>conftest.$ac_ext 5408cat confdefs.h >>conftest.$ac_ext
@@ -5229,6 +5420,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229 (exit $ac_status); } >/dev/null; then 5420 (exit $ac_status); } >/dev/null; then
5230 if test -s conftest.err; then 5421 if test -s conftest.err; then
5231 ac_cpp_err=$ac_c_preproc_warn_flag 5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5232 else 5424 else
5233 ac_cpp_err= 5425 ac_cpp_err=
5234 fi 5426 fi
@@ -5262,7 +5454,6 @@ if test "${ac_cv_header_stdc+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6 5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else 5455else
5264 cat >conftest.$ac_ext <<_ACEOF 5456 cat >conftest.$ac_ext <<_ACEOF
5265#line $LINENO "configure"
5266/* confdefs.h. */ 5457/* confdefs.h. */
5267_ACEOF 5458_ACEOF
5268cat confdefs.h >>conftest.$ac_ext 5459cat confdefs.h >>conftest.$ac_ext
@@ -5283,11 +5474,21 @@ main ()
5283_ACEOF 5474_ACEOF
5284rm -f conftest.$ac_objext 5475rm -f conftest.$ac_objext
5285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5 5477 (eval $ac_compile) 2>conftest.er1
5287 ac_status=$? 5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && 5483 (exit $ac_status); } &&
5290 { ac_try='test -s conftest.$ac_objext' 5484 { ac_try='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5 5493 (eval $ac_try) 2>&5
5293 ac_status=$? 5494 ac_status=$?
@@ -5300,12 +5501,11 @@ sed 's/^/| /' conftest.$ac_ext >&5
5300 5501
5301ac_cv_header_stdc=no 5502ac_cv_header_stdc=no
5302fi 5503fi
5303rm -f conftest.$ac_objext conftest.$ac_ext 5504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304 5505
5305if test $ac_cv_header_stdc = yes; then 5506if test $ac_cv_header_stdc = yes; then
5306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5307 cat >conftest.$ac_ext <<_ACEOF 5508 cat >conftest.$ac_ext <<_ACEOF
5308#line $LINENO "configure"
5309/* confdefs.h. */ 5509/* confdefs.h. */
5310_ACEOF 5510_ACEOF
5311cat confdefs.h >>conftest.$ac_ext 5511cat confdefs.h >>conftest.$ac_ext
@@ -5327,7 +5527,6 @@ fi
5327if test $ac_cv_header_stdc = yes; then 5527if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat >conftest.$ac_ext <<_ACEOF 5529 cat >conftest.$ac_ext <<_ACEOF
5330#line $LINENO "configure"
5331/* confdefs.h. */ 5530/* confdefs.h. */
5332_ACEOF 5531_ACEOF
5333cat confdefs.h >>conftest.$ac_ext 5532cat confdefs.h >>conftest.$ac_ext
@@ -5352,7 +5551,6 @@ if test $ac_cv_header_stdc = yes; then
5352 : 5551 :
5353else 5552else
5354 cat >conftest.$ac_ext <<_ACEOF 5553 cat >conftest.$ac_ext <<_ACEOF
5355#line $LINENO "configure"
5356/* confdefs.h. */ 5554/* confdefs.h. */
5357_ACEOF 5555_ACEOF
5358cat confdefs.h >>conftest.$ac_ext 5556cat confdefs.h >>conftest.$ac_ext
@@ -5364,9 +5562,9 @@ cat >>conftest.$ac_ext <<_ACEOF
5364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365#else 5563#else
5366# define ISLOWER(c) \ 5564# define ISLOWER(c) \
5367 (('a' <= (c) && (c) <= 'i') \ 5565 (('a' <= (c) && (c) <= 'i') \
5368 || ('j' <= (c) && (c) <= 'r') \ 5566 || ('j' <= (c) && (c) <= 'r') \
5369 || ('s' <= (c) && (c) <= 'z')) 5567 || ('s' <= (c) && (c) <= 'z'))
5370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5371#endif 5569#endif
5372 5570
@@ -5377,7 +5575,7 @@ main ()
5377 int i; 5575 int i;
5378 for (i = 0; i < 256; i++) 5576 for (i = 0; i < 256; i++)
5379 if (XOR (islower (i), ISLOWER (i)) 5577 if (XOR (islower (i), ISLOWER (i))
5380 || toupper (i) != TOUPPER (i)) 5578 || toupper (i) != TOUPPER (i))
5381 exit(2); 5579 exit(2);
5382 exit (0); 5580 exit (0);
5383} 5581}
@@ -5402,7 +5600,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5402( exit $ac_status ) 5600( exit $ac_status )
5403ac_cv_header_stdc=no 5601ac_cv_header_stdc=no
5404fi 5602fi
5405rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5406fi 5604fi
5407fi 5605fi
5408fi 5606fi
@@ -5422,7 +5620,6 @@ if test "${ac_cv_header_time+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6 5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5423else 5621else
5424 cat >conftest.$ac_ext <<_ACEOF 5622 cat >conftest.$ac_ext <<_ACEOF
5425#line $LINENO "configure"
5426/* confdefs.h. */ 5623/* confdefs.h. */
5427_ACEOF 5624_ACEOF
5428cat confdefs.h >>conftest.$ac_ext 5625cat confdefs.h >>conftest.$ac_ext
@@ -5443,11 +5640,21 @@ return 0;
5443_ACEOF 5640_ACEOF
5444rm -f conftest.$ac_objext 5641rm -f conftest.$ac_objext
5445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446 (eval $ac_compile) 2>&5 5643 (eval $ac_compile) 2>conftest.er1
5447 ac_status=$? 5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } && 5649 (exit $ac_status); } &&
5450 { ac_try='test -s conftest.$ac_objext' 5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 (eval $ac_try) 2>&5 5659 (eval $ac_try) 2>&5
5453 ac_status=$? 5660 ac_status=$?
@@ -5460,7 +5667,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5460 5667
5461ac_cv_header_time=no 5668ac_cv_header_time=no
5462fi 5669fi
5463rm -f conftest.$ac_objext conftest.$ac_ext 5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464fi 5671fi
5465echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5672echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5466echo "${ECHO_T}$ac_cv_header_time" >&6 5673echo "${ECHO_T}$ac_cv_header_time" >&6
@@ -5478,7 +5685,6 @@ if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6 5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5479else 5686else
5480 cat >conftest.$ac_ext <<_ACEOF 5687 cat >conftest.$ac_ext <<_ACEOF
5481#line $LINENO "configure"
5482/* confdefs.h. */ 5688/* confdefs.h. */
5483_ACEOF 5689_ACEOF
5484cat confdefs.h >>conftest.$ac_ext 5690cat confdefs.h >>conftest.$ac_ext
@@ -5498,11 +5704,21 @@ main ()
5498_ACEOF 5704_ACEOF
5499rm -f conftest.$ac_objext 5705rm -f conftest.$ac_objext
5500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5 5707 (eval $ac_compile) 2>conftest.er1
5502 ac_status=$? 5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && 5713 (exit $ac_status); } &&
5505 { ac_try='test -s conftest.$ac_objext' 5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5 5723 (eval $ac_try) 2>&5
5508 ac_status=$? 5724 ac_status=$?
@@ -5515,7 +5731,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5515 5731
5516ac_cv_have_decl_sys_siglist=no 5732ac_cv_have_decl_sys_siglist=no
5517fi 5733fi
5518rm -f conftest.$ac_objext conftest.$ac_ext 5734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519fi 5735fi
5520echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 5736echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5521echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 5737echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
@@ -5543,7 +5759,6 @@ if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6 5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else 5760else
5545 cat >conftest.$ac_ext <<_ACEOF 5761 cat >conftest.$ac_ext <<_ACEOF
5546#line $LINENO "configure"
5547/* confdefs.h. */ 5762/* confdefs.h. */
5548_ACEOF 5763_ACEOF
5549cat confdefs.h >>conftest.$ac_ext 5764cat confdefs.h >>conftest.$ac_ext
@@ -5563,11 +5778,21 @@ main ()
5563_ACEOF 5778_ACEOF
5564rm -f conftest.$ac_objext 5779rm -f conftest.$ac_objext
5565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5 5781 (eval $ac_compile) 2>conftest.er1
5567 ac_status=$? 5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && 5787 (exit $ac_status); } &&
5570 { ac_try='test -s conftest.$ac_objext' 5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5 5797 (eval $ac_try) 2>&5
5573 ac_status=$? 5798 ac_status=$?
@@ -5580,7 +5805,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5580 5805
5581ac_cv_have_decl___sys_siglist=no 5806ac_cv_have_decl___sys_siglist=no
5582fi 5807fi
5583rm -f conftest.$ac_objext conftest.$ac_ext 5808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5584fi 5809fi
5585echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 5810echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5586echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 5811echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
@@ -5614,7 +5839,6 @@ if test "${ac_cv_header_sys_wait_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6 5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else 5840else
5616 cat >conftest.$ac_ext <<_ACEOF 5841 cat >conftest.$ac_ext <<_ACEOF
5617#line $LINENO "configure"
5618/* confdefs.h. */ 5842/* confdefs.h. */
5619_ACEOF 5843_ACEOF
5620cat confdefs.h >>conftest.$ac_ext 5844cat confdefs.h >>conftest.$ac_ext
@@ -5641,11 +5865,21 @@ main ()
5641_ACEOF 5865_ACEOF
5642rm -f conftest.$ac_objext 5866rm -f conftest.$ac_objext
5643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>&5 5868 (eval $ac_compile) 2>conftest.er1
5645 ac_status=$? 5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && 5874 (exit $ac_status); } &&
5648 { ac_try='test -s conftest.$ac_objext' 5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5 5884 (eval $ac_try) 2>&5
5651 ac_status=$? 5885 ac_status=$?
@@ -5658,7 +5892,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5658 5892
5659ac_cv_header_sys_wait_h=no 5893ac_cv_header_sys_wait_h=no
5660fi 5894fi
5661rm -f conftest.$ac_objext conftest.$ac_ext 5895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662fi 5896fi
5663echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5897echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5664echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5898echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
@@ -5677,7 +5911,6 @@ if test "${emacs_cv_struct_utimbuf+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6 5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else 5912else
5679 cat >conftest.$ac_ext <<_ACEOF 5913 cat >conftest.$ac_ext <<_ACEOF
5680#line $LINENO "configure"
5681/* confdefs.h. */ 5914/* confdefs.h. */
5682_ACEOF 5915_ACEOF
5683cat confdefs.h >>conftest.$ac_ext 5916cat confdefs.h >>conftest.$ac_ext
@@ -5706,11 +5939,21 @@ static struct utimbuf x; x.actime = x.modtime;
5706_ACEOF 5939_ACEOF
5707rm -f conftest.$ac_objext 5940rm -f conftest.$ac_objext
5708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5 5942 (eval $ac_compile) 2>conftest.er1
5710 ac_status=$? 5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && 5948 (exit $ac_status); } &&
5713 { ac_try='test -s conftest.$ac_objext' 5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5 5958 (eval $ac_try) 2>&5
5716 ac_status=$? 5959 ac_status=$?
@@ -5723,7 +5966,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5723 5966
5724emacs_cv_struct_utimbuf=no 5967emacs_cv_struct_utimbuf=no
5725fi 5968fi
5726rm -f conftest.$ac_objext conftest.$ac_ext 5969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5727fi 5970fi
5728echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 5971echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5729echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 5972echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
@@ -5741,7 +5984,6 @@ if test "${ac_cv_type_signal+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6 5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else 5985else
5743 cat >conftest.$ac_ext <<_ACEOF 5986 cat >conftest.$ac_ext <<_ACEOF
5744#line $LINENO "configure"
5745/* confdefs.h. */ 5987/* confdefs.h. */
5746_ACEOF 5988_ACEOF
5747cat confdefs.h >>conftest.$ac_ext 5989cat confdefs.h >>conftest.$ac_ext
@@ -5768,11 +6010,21 @@ int i;
5768_ACEOF 6010_ACEOF
5769rm -f conftest.$ac_objext 6011rm -f conftest.$ac_objext
5770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5 6013 (eval $ac_compile) 2>conftest.er1
5772 ac_status=$? 6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && 6019 (exit $ac_status); } &&
5775 { ac_try='test -s conftest.$ac_objext' 6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5 6029 (eval $ac_try) 2>&5
5778 ac_status=$? 6030 ac_status=$?
@@ -5785,7 +6037,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5785 6037
5786ac_cv_type_signal=int 6038ac_cv_type_signal=int
5787fi 6039fi
5788rm -f conftest.$ac_objext conftest.$ac_ext 6040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789fi 6041fi
5790echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6042echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5791echo "${ECHO_T}$ac_cv_type_signal" >&6 6043echo "${ECHO_T}$ac_cv_type_signal" >&6
@@ -5802,7 +6054,6 @@ if test "${emacs_cv_speed_t+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6 6054 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else 6055else
5804 cat >conftest.$ac_ext <<_ACEOF 6056 cat >conftest.$ac_ext <<_ACEOF
5805#line $LINENO "configure"
5806/* confdefs.h. */ 6057/* confdefs.h. */
5807_ACEOF 6058_ACEOF
5808cat confdefs.h >>conftest.$ac_ext 6059cat confdefs.h >>conftest.$ac_ext
@@ -5819,11 +6070,21 @@ speed_t x = 1;
5819_ACEOF 6070_ACEOF
5820rm -f conftest.$ac_objext 6071rm -f conftest.$ac_objext
5821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>&5 6073 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$? 6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && 6079 (exit $ac_status); } &&
5826 { ac_try='test -s conftest.$ac_objext' 6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5 6089 (eval $ac_try) 2>&5
5829 ac_status=$? 6090 ac_status=$?
@@ -5836,7 +6097,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5836 6097
5837emacs_cv_speed_t=no 6098emacs_cv_speed_t=no
5838fi 6099fi
5839rm -f conftest.$ac_objext conftest.$ac_ext 6100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5840fi 6101fi
5841echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 6102echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5842echo "${ECHO_T}$emacs_cv_speed_t" >&6 6103echo "${ECHO_T}$emacs_cv_speed_t" >&6
@@ -5854,7 +6115,6 @@ if test "${emacs_cv_struct_timeval+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6 6115 echo $ECHO_N "(cached) $ECHO_C" >&6
5855else 6116else
5856 cat >conftest.$ac_ext <<_ACEOF 6117 cat >conftest.$ac_ext <<_ACEOF
5857#line $LINENO "configure"
5858/* confdefs.h. */ 6118/* confdefs.h. */
5859_ACEOF 6119_ACEOF
5860cat confdefs.h >>conftest.$ac_ext 6120cat confdefs.h >>conftest.$ac_ext
@@ -5880,11 +6140,21 @@ static struct timeval x; x.tv_sec = x.tv_usec;
5880_ACEOF 6140_ACEOF
5881rm -f conftest.$ac_objext 6141rm -f conftest.$ac_objext
5882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5 6143 (eval $ac_compile) 2>conftest.er1
5884 ac_status=$? 6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } && 6149 (exit $ac_status); } &&
5887 { ac_try='test -s conftest.$ac_objext' 6150 { ac_try='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 (eval $ac_try) 2>&5 6159 (eval $ac_try) 2>&5
5890 ac_status=$? 6160 ac_status=$?
@@ -5897,7 +6167,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5897 6167
5898emacs_cv_struct_timeval=no 6168emacs_cv_struct_timeval=no
5899fi 6169fi
5900rm -f conftest.$ac_objext conftest.$ac_ext 6170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901fi 6171fi
5902echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 6172echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5903echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 6173echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
@@ -5916,7 +6186,6 @@ if test "${emacs_cv_struct_exception+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6 6186 echo $ECHO_N "(cached) $ECHO_C" >&6
5917else 6187else
5918 cat >conftest.$ac_ext <<_ACEOF 6188 cat >conftest.$ac_ext <<_ACEOF
5919#line $LINENO "configure"
5920/* confdefs.h. */ 6189/* confdefs.h. */
5921_ACEOF 6190_ACEOF
5922cat confdefs.h >>conftest.$ac_ext 6191cat confdefs.h >>conftest.$ac_ext
@@ -5933,11 +6202,21 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5933_ACEOF 6202_ACEOF
5934rm -f conftest.$ac_objext 6203rm -f conftest.$ac_objext
5935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5 6205 (eval $ac_compile) 2>conftest.er1
5937 ac_status=$? 6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && 6211 (exit $ac_status); } &&
5940 { ac_try='test -s conftest.$ac_objext' 6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5 6221 (eval $ac_try) 2>&5
5943 ac_status=$? 6222 ac_status=$?
@@ -5950,7 +6229,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
5950 6229
5951emacs_cv_struct_exception=no 6230emacs_cv_struct_exception=no
5952fi 6231fi
5953rm -f conftest.$ac_objext conftest.$ac_ext 6232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954fi 6233fi
5955echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 6234echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5956echo "${ECHO_T}$emacs_cv_struct_exception" >&6 6235echo "${ECHO_T}$emacs_cv_struct_exception" >&6
@@ -5963,13 +6242,227 @@ _ACEOF
5963 6242
5964fi 6243fi
5965 6244
6245
6246for ac_header in sys/socket.h
6247do
6248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254fi
6255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6257else
6258 # Is the header compilable?
6259echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267$ac_includes_default
6268#include <$ac_header>
6269_ACEOF
6270rm -f conftest.$ac_objext
6271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_header_compiler=yes
6293else
6294 echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297ac_header_compiler=no
6298fi
6299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301echo "${ECHO_T}$ac_header_compiler" >&6
6302
6303# Is the header present?
6304echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6306cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h. */
6308_ACEOF
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h. */
6312#include <$ac_header>
6313_ACEOF
6314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev/null; then
6322 if test -s conftest.err; then
6323 ac_cpp_err=$ac_c_preproc_warn_flag
6324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6325 else
6326 ac_cpp_err=
6327 fi
6328else
6329 ac_cpp_err=yes
6330fi
6331if test -z "$ac_cpp_err"; then
6332 ac_header_preproc=yes
6333else
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_header_preproc=no
6338fi
6339rm -f conftest.err conftest.$ac_ext
6340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341echo "${ECHO_T}$ac_header_preproc" >&6
6342
6343# So? What about this header?
6344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 yes:no: )
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc=yes
6351 ;;
6352 no:yes:* )
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6365 (
6366 cat <<\_ASBOX
6367## ------------------------------------------ ##
6368## Report this to the AC_PACKAGE_NAME lists. ##
6369## ------------------------------------------ ##
6370_ASBOX
6371 ) |
6372 sed "s/^/$as_me: WARNING: /" >&2
6373 ;;
6374esac
6375echo "$as_me:$LINENO: checking for $ac_header" >&5
6376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 eval "$as_ac_Header=\$ac_header_preproc"
6381fi
6382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384
6385fi
6386if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h <<_ACEOF
6388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389_ACEOF
6390
6391fi
6392
6393done
6394
6395
6396for ac_header in net/if.h
6397do
6398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399echo "$as_me:$LINENO: checking for $ac_header" >&5
6400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6401if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 cat >conftest.$ac_ext <<_ACEOF
6405/* confdefs.h. */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h. */
6410$ac_includes_default
6411#if HAVE_SYS_SOCKET_H
6412#include <sys/socket.h>
6413#endif
6414
6415#include <$ac_header>
6416_ACEOF
6417rm -f conftest.$ac_objext
6418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 eval "$as_ac_Header=yes"
6440else
6441 echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
6444eval "$as_ac_Header=no"
6445fi
6446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447fi
6448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6450if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453_ACEOF
6454
6455fi
6456
6457done
6458
6459
5966echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 6460echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5967echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 6461echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5968if test "${ac_cv_struct_tm+set}" = set; then 6462if test "${ac_cv_struct_tm+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6 6463 echo $ECHO_N "(cached) $ECHO_C" >&6
5970else 6464else
5971 cat >conftest.$ac_ext <<_ACEOF 6465 cat >conftest.$ac_ext <<_ACEOF
5972#line $LINENO "configure"
5973/* confdefs.h. */ 6466/* confdefs.h. */
5974_ACEOF 6467_ACEOF
5975cat confdefs.h >>conftest.$ac_ext 6468cat confdefs.h >>conftest.$ac_ext
@@ -5988,11 +6481,21 @@ struct tm *tp; tp->tm_sec;
5988_ACEOF 6481_ACEOF
5989rm -f conftest.$ac_objext 6482rm -f conftest.$ac_objext
5990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5 6484 (eval $ac_compile) 2>conftest.er1
5992 ac_status=$? 6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && 6490 (exit $ac_status); } &&
5995 { ac_try='test -s conftest.$ac_objext' 6491 { ac_try='test -z "$ac_c_werror_flag"
6492 || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5 6500 (eval $ac_try) 2>&5
5998 ac_status=$? 6501 ac_status=$?
@@ -6005,7 +6508,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6005 6508
6006ac_cv_struct_tm=sys/time.h 6509ac_cv_struct_tm=sys/time.h
6007fi 6510fi
6008rm -f conftest.$ac_objext conftest.$ac_ext 6511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009fi 6512fi
6010echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 6513echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6011echo "${ECHO_T}$ac_cv_struct_tm" >&6 6514echo "${ECHO_T}$ac_cv_struct_tm" >&6
@@ -6023,7 +6526,6 @@ if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6 6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6024else 6527else
6025 cat >conftest.$ac_ext <<_ACEOF 6528 cat >conftest.$ac_ext <<_ACEOF
6026#line $LINENO "configure"
6027/* confdefs.h. */ 6529/* confdefs.h. */
6028_ACEOF 6530_ACEOF
6029cat confdefs.h >>conftest.$ac_ext 6531cat confdefs.h >>conftest.$ac_ext
@@ -6045,11 +6547,21 @@ return 0;
6045_ACEOF 6547_ACEOF
6046rm -f conftest.$ac_objext 6548rm -f conftest.$ac_objext
6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>&5 6550 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$? 6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && 6556 (exit $ac_status); } &&
6052 { ac_try='test -s conftest.$ac_objext' 6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5 6566 (eval $ac_try) 2>&5
6055 ac_status=$? 6567 ac_status=$?
@@ -6061,7 +6573,6 @@ else
6061sed 's/^/| /' conftest.$ac_ext >&5 6573sed 's/^/| /' conftest.$ac_ext >&5
6062 6574
6063cat >conftest.$ac_ext <<_ACEOF 6575cat >conftest.$ac_ext <<_ACEOF
6064#line $LINENO "configure"
6065/* confdefs.h. */ 6576/* confdefs.h. */
6066_ACEOF 6577_ACEOF
6067cat confdefs.h >>conftest.$ac_ext 6578cat confdefs.h >>conftest.$ac_ext
@@ -6083,11 +6594,21 @@ return 0;
6083_ACEOF 6594_ACEOF
6084rm -f conftest.$ac_objext 6595rm -f conftest.$ac_objext
6085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5 6597 (eval $ac_compile) 2>conftest.er1
6087 ac_status=$? 6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && 6603 (exit $ac_status); } &&
6090 { ac_try='test -s conftest.$ac_objext' 6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5 6613 (eval $ac_try) 2>&5
6093 ac_status=$? 6614 ac_status=$?
@@ -6100,9 +6621,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6100 6621
6101ac_cv_member_struct_tm_tm_zone=no 6622ac_cv_member_struct_tm_tm_zone=no
6102fi 6623fi
6103rm -f conftest.$ac_objext conftest.$ac_ext 6624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi 6625fi
6105rm -f conftest.$ac_objext conftest.$ac_ext 6626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi 6627fi
6107echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 6628echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6108echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 6629echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
@@ -6128,7 +6649,6 @@ if test "${ac_cv_var_tzname+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6 6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else 6650else
6130 cat >conftest.$ac_ext <<_ACEOF 6651 cat >conftest.$ac_ext <<_ACEOF
6131#line $LINENO "configure"
6132/* confdefs.h. */ 6652/* confdefs.h. */
6133_ACEOF 6653_ACEOF
6134cat confdefs.h >>conftest.$ac_ext 6654cat confdefs.h >>conftest.$ac_ext
@@ -6149,11 +6669,21 @@ atoi(*tzname);
6149_ACEOF 6669_ACEOF
6150rm -f conftest.$ac_objext conftest$ac_exeext 6670rm -f conftest.$ac_objext conftest$ac_exeext
6151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5 6672 (eval $ac_link) 2>conftest.er1
6153 ac_status=$? 6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && 6678 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext' 6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5 6688 (eval $ac_try) 2>&5
6159 ac_status=$? 6689 ac_status=$?
@@ -6166,7 +6696,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
6166 6696
6167ac_cv_var_tzname=no 6697ac_cv_var_tzname=no
6168fi 6698fi
6169rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6699rm -f conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6170fi 6701fi
6171echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 6702echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6172echo "${ECHO_T}$ac_cv_var_tzname" >&6 6703echo "${ECHO_T}$ac_cv_var_tzname" >&6
@@ -6185,7 +6716,6 @@ if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6 6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else 6717else
6187 cat >conftest.$ac_ext <<_ACEOF 6718 cat >conftest.$ac_ext <<_ACEOF
6188#line $LINENO "configure"
6189/* confdefs.h. */ 6719/* confdefs.h. */
6190_ACEOF 6720_ACEOF
6191cat confdefs.h >>conftest.$ac_ext 6721cat confdefs.h >>conftest.$ac_ext
@@ -6205,11 +6735,21 @@ return 0;
6205_ACEOF 6735_ACEOF
6206rm -f conftest.$ac_objext 6736rm -f conftest.$ac_objext
6207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5 6738 (eval $ac_compile) 2>conftest.er1
6209 ac_status=$? 6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } && 6744 (exit $ac_status); } &&
6212 { ac_try='test -s conftest.$ac_objext' 6745 { ac_try='test -z "$ac_c_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5 6754 (eval $ac_try) 2>&5
6215 ac_status=$? 6755 ac_status=$?
@@ -6221,7 +6761,6 @@ else
6221sed 's/^/| /' conftest.$ac_ext >&5 6761sed 's/^/| /' conftest.$ac_ext >&5
6222 6762
6223cat >conftest.$ac_ext <<_ACEOF 6763cat >conftest.$ac_ext <<_ACEOF
6224#line $LINENO "configure"
6225/* confdefs.h. */ 6764/* confdefs.h. */
6226_ACEOF 6765_ACEOF
6227cat confdefs.h >>conftest.$ac_ext 6766cat confdefs.h >>conftest.$ac_ext
@@ -6241,11 +6780,21 @@ return 0;
6241_ACEOF 6780_ACEOF
6242rm -f conftest.$ac_objext 6781rm -f conftest.$ac_objext
6243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5 6783 (eval $ac_compile) 2>conftest.er1
6245 ac_status=$? 6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && 6789 (exit $ac_status); } &&
6248 { ac_try='test -s conftest.$ac_objext' 6790 { ac_try='test -z "$ac_c_werror_flag"
6791 || test ! -s conftest.err'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; } &&
6797 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5 6799 (eval $ac_try) 2>&5
6251 ac_status=$? 6800 ac_status=$?
@@ -6258,9 +6807,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6258 6807
6259ac_cv_member_struct_tm_tm_gmtoff=no 6808ac_cv_member_struct_tm_tm_gmtoff=no
6260fi 6809fi
6261rm -f conftest.$ac_objext conftest.$ac_ext 6810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262fi 6811fi
6263rm -f conftest.$ac_objext conftest.$ac_ext 6812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264fi 6813fi
6265echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 6814echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6266echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 6815echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
@@ -6278,13 +6827,18 @@ if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6 6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6279else 6828else
6280 cat >conftest.$ac_ext <<_ACEOF 6829 cat >conftest.$ac_ext <<_ACEOF
6281#line $LINENO "configure"
6282/* confdefs.h. */ 6830/* confdefs.h. */
6283_ACEOF 6831_ACEOF
6284cat confdefs.h >>conftest.$ac_ext 6832cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF 6833cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */ 6834/* end confdefs.h. */
6835$ac_includes_default
6836#if HAVE_SYS_SOCKET_H
6837#include <sys/socket.h>
6838#endif
6839#if HAVE_NET_IF_H
6287#include <net/if.h> 6840#include <net/if.h>
6841#endif
6288 6842
6289int 6843int
6290main () 6844main ()
@@ -6298,11 +6852,21 @@ return 0;
6298_ACEOF 6852_ACEOF
6299rm -f conftest.$ac_objext 6853rm -f conftest.$ac_objext
6300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>&5 6855 (eval $ac_compile) 2>conftest.er1
6302 ac_status=$? 6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && 6861 (exit $ac_status); } &&
6305 { ac_try='test -s conftest.$ac_objext' 6862 { ac_try='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest.$ac_objext'
6306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 (eval $ac_try) 2>&5 6871 (eval $ac_try) 2>&5
6308 ac_status=$? 6872 ac_status=$?
@@ -6314,13 +6878,18 @@ else
6314sed 's/^/| /' conftest.$ac_ext >&5 6878sed 's/^/| /' conftest.$ac_ext >&5
6315 6879
6316cat >conftest.$ac_ext <<_ACEOF 6880cat >conftest.$ac_ext <<_ACEOF
6317#line $LINENO "configure"
6318/* confdefs.h. */ 6881/* confdefs.h. */
6319_ACEOF 6882_ACEOF
6320cat confdefs.h >>conftest.$ac_ext 6883cat confdefs.h >>conftest.$ac_ext
6321cat >>conftest.$ac_ext <<_ACEOF 6884cat >>conftest.$ac_ext <<_ACEOF
6322/* end confdefs.h. */ 6885/* end confdefs.h. */
6886$ac_includes_default
6887#if HAVE_SYS_SOCKET_H
6888#include <sys/socket.h>
6889#endif
6890#if HAVE_NET_IF_H
6323#include <net/if.h> 6891#include <net/if.h>
6892#endif
6324 6893
6325int 6894int
6326main () 6895main ()
@@ -6334,11 +6903,21 @@ return 0;
6334_ACEOF 6903_ACEOF
6335rm -f conftest.$ac_objext 6904rm -f conftest.$ac_objext
6336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>&5 6906 (eval $ac_compile) 2>conftest.er1
6338 ac_status=$? 6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && 6912 (exit $ac_status); } &&
6341 { ac_try='test -s conftest.$ac_objext' 6913 { ac_try='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try='test -s conftest.$ac_objext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5 6922 (eval $ac_try) 2>&5
6344 ac_status=$? 6923 ac_status=$?
@@ -6351,9 +6930,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6351 6930
6352ac_cv_member_struct_ifreq_ifr_flags=no 6931ac_cv_member_struct_ifreq_ifr_flags=no
6353fi 6932fi
6354rm -f conftest.$ac_objext conftest.$ac_ext 6933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6355fi 6934fi
6356rm -f conftest.$ac_objext conftest.$ac_ext 6935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357fi 6936fi
6358echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 6937echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6359echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6 6938echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
@@ -6371,13 +6950,18 @@ if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6 6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6372else 6951else
6373 cat >conftest.$ac_ext <<_ACEOF 6952 cat >conftest.$ac_ext <<_ACEOF
6374#line $LINENO "configure"
6375/* confdefs.h. */ 6953/* confdefs.h. */
6376_ACEOF 6954_ACEOF
6377cat confdefs.h >>conftest.$ac_ext 6955cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF 6956cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */ 6957/* end confdefs.h. */
6958$ac_includes_default
6959#if HAVE_SYS_SOCKET_H
6960#include <sys/socket.h>
6961#endif
6962#if HAVE_NET_IF_H
6380#include <net/if.h> 6963#include <net/if.h>
6964#endif
6381 6965
6382int 6966int
6383main () 6967main ()
@@ -6391,11 +6975,21 @@ return 0;
6391_ACEOF 6975_ACEOF
6392rm -f conftest.$ac_objext 6976rm -f conftest.$ac_objext
6393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>&5 6978 (eval $ac_compile) 2>conftest.er1
6395 ac_status=$? 6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && 6984 (exit $ac_status); } &&
6398 { ac_try='test -s conftest.$ac_objext' 6985 { ac_try='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest.$ac_objext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 (eval $ac_try) 2>&5 6994 (eval $ac_try) 2>&5
6401 ac_status=$? 6995 ac_status=$?
@@ -6407,13 +7001,18 @@ else
6407sed 's/^/| /' conftest.$ac_ext >&5 7001sed 's/^/| /' conftest.$ac_ext >&5
6408 7002
6409cat >conftest.$ac_ext <<_ACEOF 7003cat >conftest.$ac_ext <<_ACEOF
6410#line $LINENO "configure"
6411/* confdefs.h. */ 7004/* confdefs.h. */
6412_ACEOF 7005_ACEOF
6413cat confdefs.h >>conftest.$ac_ext 7006cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF 7007cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h. */ 7008/* end confdefs.h. */
7009$ac_includes_default
7010#if HAVE_SYS_SOCKET_H
7011#include <sys/socket.h>
7012#endif
7013#if HAVE_NET_IF_H
6416#include <net/if.h> 7014#include <net/if.h>
7015#endif
6417 7016
6418int 7017int
6419main () 7018main ()
@@ -6427,11 +7026,21 @@ return 0;
6427_ACEOF 7026_ACEOF
6428rm -f conftest.$ac_objext 7027rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5 7029 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$? 7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && 7035 (exit $ac_status); } &&
6434 { ac_try='test -s conftest.$ac_objext' 7036 { ac_try='test -z "$ac_c_werror_flag"
7037 || test ! -s conftest.err'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; } &&
7043 { ac_try='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5 7045 (eval $ac_try) 2>&5
6437 ac_status=$? 7046 ac_status=$?
@@ -6444,9 +7053,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6444 7053
6445ac_cv_member_struct_ifreq_ifr_hwaddr=no 7054ac_cv_member_struct_ifreq_ifr_hwaddr=no
6446fi 7055fi
6447rm -f conftest.$ac_objext conftest.$ac_ext 7056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi 7057fi
6449rm -f conftest.$ac_objext conftest.$ac_ext 7058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450fi 7059fi
6451echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 7060echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6452echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6 7061echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
@@ -6464,13 +7073,18 @@ if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6 7073 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else 7074else
6466 cat >conftest.$ac_ext <<_ACEOF 7075 cat >conftest.$ac_ext <<_ACEOF
6467#line $LINENO "configure"
6468/* confdefs.h. */ 7076/* confdefs.h. */
6469_ACEOF 7077_ACEOF
6470cat confdefs.h >>conftest.$ac_ext 7078cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF 7079cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h. */ 7080/* end confdefs.h. */
7081$ac_includes_default
7082#if HAVE_SYS_SOCKET_H
7083#include <sys/socket.h>
7084#endif
7085#if HAVE_NET_IF_H
6473#include <net/if.h> 7086#include <net/if.h>
7087#endif
6474 7088
6475int 7089int
6476main () 7090main ()
@@ -6484,11 +7098,21 @@ return 0;
6484_ACEOF 7098_ACEOF
6485rm -f conftest.$ac_objext 7099rm -f conftest.$ac_objext
6486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487 (eval $ac_compile) 2>&5 7101 (eval $ac_compile) 2>conftest.er1
6488 ac_status=$? 7102 ac_status=$?
7103 grep -v '^ *+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && 7107 (exit $ac_status); } &&
6491 { ac_try='test -s conftest.$ac_objext' 7108 { ac_try='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest.$ac_objext'
6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 (eval $ac_try) 2>&5 7117 (eval $ac_try) 2>&5
6494 ac_status=$? 7118 ac_status=$?
@@ -6500,13 +7124,18 @@ else
6500sed 's/^/| /' conftest.$ac_ext >&5 7124sed 's/^/| /' conftest.$ac_ext >&5
6501 7125
6502cat >conftest.$ac_ext <<_ACEOF 7126cat >conftest.$ac_ext <<_ACEOF
6503#line $LINENO "configure"
6504/* confdefs.h. */ 7127/* confdefs.h. */
6505_ACEOF 7128_ACEOF
6506cat confdefs.h >>conftest.$ac_ext 7129cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF 7130cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h. */ 7131/* end confdefs.h. */
7132$ac_includes_default
7133#if HAVE_SYS_SOCKET_H
7134#include <sys/socket.h>
7135#endif
7136#if HAVE_NET_IF_H
6509#include <net/if.h> 7137#include <net/if.h>
7138#endif
6510 7139
6511int 7140int
6512main () 7141main ()
@@ -6520,11 +7149,21 @@ return 0;
6520_ACEOF 7149_ACEOF
6521rm -f conftest.$ac_objext 7150rm -f conftest.$ac_objext
6522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>&5 7152 (eval $ac_compile) 2>conftest.er1
6524 ac_status=$? 7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && 7158 (exit $ac_status); } &&
6527 { ac_try='test -s conftest.$ac_objext' 7159 { ac_try='test -z "$ac_c_werror_flag"
7160 || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5 7168 (eval $ac_try) 2>&5
6530 ac_status=$? 7169 ac_status=$?
@@ -6537,9 +7176,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6537 7176
6538ac_cv_member_struct_ifreq_ifr_netmask=no 7177ac_cv_member_struct_ifreq_ifr_netmask=no
6539fi 7178fi
6540rm -f conftest.$ac_objext conftest.$ac_ext 7179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541fi 7180fi
6542rm -f conftest.$ac_objext conftest.$ac_ext 7181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543fi 7182fi
6544echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 7183echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6545echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6 7184echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
@@ -6557,13 +7196,18 @@ if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6 7196 echo $ECHO_N "(cached) $ECHO_C" >&6
6558else 7197else
6559 cat >conftest.$ac_ext <<_ACEOF 7198 cat >conftest.$ac_ext <<_ACEOF
6560#line $LINENO "configure"
6561/* confdefs.h. */ 7199/* confdefs.h. */
6562_ACEOF 7200_ACEOF
6563cat confdefs.h >>conftest.$ac_ext 7201cat confdefs.h >>conftest.$ac_ext
6564cat >>conftest.$ac_ext <<_ACEOF 7202cat >>conftest.$ac_ext <<_ACEOF
6565/* end confdefs.h. */ 7203/* end confdefs.h. */
7204$ac_includes_default
7205#if HAVE_SYS_SOCKET_H
7206#include <sys/socket.h>
7207#endif
7208#if HAVE_NET_IF_H
6566#include <net/if.h> 7209#include <net/if.h>
7210#endif
6567 7211
6568int 7212int
6569main () 7213main ()
@@ -6577,11 +7221,21 @@ return 0;
6577_ACEOF 7221_ACEOF
6578rm -f conftest.$ac_objext 7222rm -f conftest.$ac_objext
6579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>&5 7224 (eval $ac_compile) 2>conftest.er1
6581 ac_status=$? 7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && 7230 (exit $ac_status); } &&
6584 { ac_try='test -s conftest.$ac_objext' 7231 { ac_try='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try='test -s conftest.$ac_objext'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5 7240 (eval $ac_try) 2>&5
6587 ac_status=$? 7241 ac_status=$?
@@ -6593,13 +7247,18 @@ else
6593sed 's/^/| /' conftest.$ac_ext >&5 7247sed 's/^/| /' conftest.$ac_ext >&5
6594 7248
6595cat >conftest.$ac_ext <<_ACEOF 7249cat >conftest.$ac_ext <<_ACEOF
6596#line $LINENO "configure"
6597/* confdefs.h. */ 7250/* confdefs.h. */
6598_ACEOF 7251_ACEOF
6599cat confdefs.h >>conftest.$ac_ext 7252cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF 7253cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */ 7254/* end confdefs.h. */
7255$ac_includes_default
7256#if HAVE_SYS_SOCKET_H
7257#include <sys/socket.h>
7258#endif
7259#if HAVE_NET_IF_H
6602#include <net/if.h> 7260#include <net/if.h>
7261#endif
6603 7262
6604int 7263int
6605main () 7264main ()
@@ -6613,11 +7272,21 @@ return 0;
6613_ACEOF 7272_ACEOF
6614rm -f conftest.$ac_objext 7273rm -f conftest.$ac_objext
6615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5 7275 (eval $ac_compile) 2>conftest.er1
6617 ac_status=$? 7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && 7281 (exit $ac_status); } &&
6620 { ac_try='test -s conftest.$ac_objext' 7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5 7291 (eval $ac_try) 2>&5
6623 ac_status=$? 7292 ac_status=$?
@@ -6630,9 +7299,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6630 7299
6631ac_cv_member_struct_ifreq_ifr_broadaddr=no 7300ac_cv_member_struct_ifreq_ifr_broadaddr=no
6632fi 7301fi
6633rm -f conftest.$ac_objext conftest.$ac_ext 7302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634fi 7303fi
6635rm -f conftest.$ac_objext conftest.$ac_ext 7304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi 7305fi
6637echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 7306echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
6638echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6 7307echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
@@ -6650,13 +7319,18 @@ if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6 7319 echo $ECHO_N "(cached) $ECHO_C" >&6
6651else 7320else
6652 cat >conftest.$ac_ext <<_ACEOF 7321 cat >conftest.$ac_ext <<_ACEOF
6653#line $LINENO "configure"
6654/* confdefs.h. */ 7322/* confdefs.h. */
6655_ACEOF 7323_ACEOF
6656cat confdefs.h >>conftest.$ac_ext 7324cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF 7325cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */ 7326/* end confdefs.h. */
7327$ac_includes_default
7328#if HAVE_SYS_SOCKET_H
7329#include <sys/socket.h>
7330#endif
7331#if HAVE_NET_IF_H
6659#include <net/if.h> 7332#include <net/if.h>
7333#endif
6660 7334
6661int 7335int
6662main () 7336main ()
@@ -6670,11 +7344,21 @@ return 0;
6670_ACEOF 7344_ACEOF
6671rm -f conftest.$ac_objext 7345rm -f conftest.$ac_objext
6672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>&5 7347 (eval $ac_compile) 2>conftest.er1
6674 ac_status=$? 7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && 7353 (exit $ac_status); } &&
6677 { ac_try='test -s conftest.$ac_objext' 7354 { ac_try='test -z "$ac_c_werror_flag"
7355 || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5 7363 (eval $ac_try) 2>&5
6680 ac_status=$? 7364 ac_status=$?
@@ -6686,13 +7370,18 @@ else
6686sed 's/^/| /' conftest.$ac_ext >&5 7370sed 's/^/| /' conftest.$ac_ext >&5
6687 7371
6688cat >conftest.$ac_ext <<_ACEOF 7372cat >conftest.$ac_ext <<_ACEOF
6689#line $LINENO "configure"
6690/* confdefs.h. */ 7373/* confdefs.h. */
6691_ACEOF 7374_ACEOF
6692cat confdefs.h >>conftest.$ac_ext 7375cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF 7376cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h. */ 7377/* end confdefs.h. */
7378$ac_includes_default
7379#if HAVE_SYS_SOCKET_H
7380#include <sys/socket.h>
7381#endif
7382#if HAVE_NET_IF_H
6695#include <net/if.h> 7383#include <net/if.h>
7384#endif
6696 7385
6697int 7386int
6698main () 7387main ()
@@ -6706,11 +7395,21 @@ return 0;
6706_ACEOF 7395_ACEOF
6707rm -f conftest.$ac_objext 7396rm -f conftest.$ac_objext
6708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6709 (eval $ac_compile) 2>&5 7398 (eval $ac_compile) 2>conftest.er1
6710 ac_status=$? 7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && 7404 (exit $ac_status); } &&
6713 { ac_try='test -s conftest.$ac_objext' 7405 { ac_try='test -z "$ac_c_werror_flag"
7406 || test ! -s conftest.err'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5 7414 (eval $ac_try) 2>&5
6716 ac_status=$? 7415 ac_status=$?
@@ -6723,9 +7422,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
6723 7422
6724ac_cv_member_struct_ifreq_ifr_addr=no 7423ac_cv_member_struct_ifreq_ifr_addr=no
6725fi 7424fi
6726rm -f conftest.$ac_objext conftest.$ac_ext 7425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6727fi 7426fi
6728rm -f conftest.$ac_objext conftest.$ac_ext 7427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6729fi 7428fi
6730echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 7429echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
6731echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6 7430echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
@@ -6766,7 +7465,6 @@ if test "${ac_cv_c_volatile+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6 7465 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else 7466else
6768 cat >conftest.$ac_ext <<_ACEOF 7467 cat >conftest.$ac_ext <<_ACEOF
6769#line $LINENO "configure"
6770/* confdefs.h. */ 7468/* confdefs.h. */
6771_ACEOF 7469_ACEOF
6772cat confdefs.h >>conftest.$ac_ext 7470cat confdefs.h >>conftest.$ac_ext
@@ -6785,11 +7483,21 @@ int * volatile y;
6785_ACEOF 7483_ACEOF
6786rm -f conftest.$ac_objext 7484rm -f conftest.$ac_objext
6787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>&5 7486 (eval $ac_compile) 2>conftest.er1
6789 ac_status=$? 7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && 7492 (exit $ac_status); } &&
6792 { ac_try='test -s conftest.$ac_objext' 7493 { ac_try='test -z "$ac_c_werror_flag"
7494 || test ! -s conftest.err'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; } &&
7500 { ac_try='test -s conftest.$ac_objext'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5 7502 (eval $ac_try) 2>&5
6795 ac_status=$? 7503 ac_status=$?
@@ -6802,7 +7510,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6802 7510
6803ac_cv_c_volatile=no 7511ac_cv_c_volatile=no
6804fi 7512fi
6805rm -f conftest.$ac_objext conftest.$ac_ext 7513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806fi 7514fi
6807echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 7515echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6808echo "${ECHO_T}$ac_cv_c_volatile" >&6 7516echo "${ECHO_T}$ac_cv_c_volatile" >&6
@@ -6820,7 +7528,6 @@ if test "${ac_cv_c_const+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6 7528 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else 7529else
6822 cat >conftest.$ac_ext <<_ACEOF 7530 cat >conftest.$ac_ext <<_ACEOF
6823#line $LINENO "configure"
6824/* confdefs.h. */ 7531/* confdefs.h. */
6825_ACEOF 7532_ACEOF
6826cat confdefs.h >>conftest.$ac_ext 7533cat confdefs.h >>conftest.$ac_ext
@@ -6883,11 +7590,21 @@ main ()
6883_ACEOF 7590_ACEOF
6884rm -f conftest.$ac_objext 7591rm -f conftest.$ac_objext
6885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886 (eval $ac_compile) 2>&5 7593 (eval $ac_compile) 2>conftest.er1
6887 ac_status=$? 7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && 7599 (exit $ac_status); } &&
6890 { ac_try='test -s conftest.$ac_objext' 7600 { ac_try='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 (eval $ac_try) 2>&5 7609 (eval $ac_try) 2>&5
6893 ac_status=$? 7610 ac_status=$?
@@ -6900,7 +7617,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6900 7617
6901ac_cv_c_const=no 7618ac_cv_c_const=no
6902fi 7619fi
6903rm -f conftest.$ac_objext conftest.$ac_ext 7620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6904fi 7621fi
6905echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7622echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6906echo "${ECHO_T}$ac_cv_c_const" >&6 7623echo "${ECHO_T}$ac_cv_c_const" >&6
@@ -6918,7 +7635,6 @@ if test "${emacs_cv_void_star+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6 7635 echo $ECHO_N "(cached) $ECHO_C" >&6
6919else 7636else
6920 cat >conftest.$ac_ext <<_ACEOF 7637 cat >conftest.$ac_ext <<_ACEOF
6921#line $LINENO "configure"
6922/* confdefs.h. */ 7638/* confdefs.h. */
6923_ACEOF 7639_ACEOF
6924cat confdefs.h >>conftest.$ac_ext 7640cat confdefs.h >>conftest.$ac_ext
@@ -6935,11 +7651,21 @@ void * foo;
6935_ACEOF 7651_ACEOF
6936rm -f conftest.$ac_objext 7652rm -f conftest.$ac_objext
6937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938 (eval $ac_compile) 2>&5 7654 (eval $ac_compile) 2>conftest.er1
6939 ac_status=$? 7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && 7660 (exit $ac_status); } &&
6942 { ac_try='test -s conftest.$ac_objext' 7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest.$ac_objext'
6943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 (eval $ac_try) 2>&5 7670 (eval $ac_try) 2>&5
6945 ac_status=$? 7671 ac_status=$?
@@ -6952,7 +7678,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
6952 7678
6953emacs_cv_void_star=no 7679emacs_cv_void_star=no
6954fi 7680fi
6955rm -f conftest.$ac_objext conftest.$ac_ext 7681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6956fi 7682fi
6957echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 7683echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6958echo "${ECHO_T}$emacs_cv_void_star" >&6 7684echo "${ECHO_T}$emacs_cv_void_star" >&6
@@ -6972,7 +7698,7 @@ fi
6972 7698
6973echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7699echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 7700echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6975set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 7701set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6976if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 7702if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6 7703 echo $ECHO_N "(cached) $ECHO_C" >&6
6978else 7704else
@@ -7089,8 +7815,8 @@ _ACEOF
7089 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7815 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7090 for ac_extension in a so sl; do 7816 for ac_extension in a so sl; do
7091 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 7817 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7092 test -f $ac_im_libdir/libX11.$ac_extension; then 7818 test -f $ac_im_libdir/libX11.$ac_extension; then
7093 ac_im_usrlibdir=$ac_im_libdir; break 7819 ac_im_usrlibdir=$ac_im_libdir; break
7094 fi 7820 fi
7095 done 7821 done
7096 # Screen out bogus values from the imake configuration. They are 7822 # Screen out bogus values from the imake configuration. They are
@@ -7150,7 +7876,6 @@ if test "$ac_x_includes" = no; then
7150 # Guess where to find include files, by looking for Intrinsic.h. 7876 # Guess where to find include files, by looking for Intrinsic.h.
7151 # First, try using that file with no special directory specified. 7877 # First, try using that file with no special directory specified.
7152 cat >conftest.$ac_ext <<_ACEOF 7878 cat >conftest.$ac_ext <<_ACEOF
7153#line $LINENO "configure"
7154/* confdefs.h. */ 7879/* confdefs.h. */
7155_ACEOF 7880_ACEOF
7156cat confdefs.h >>conftest.$ac_ext 7881cat confdefs.h >>conftest.$ac_ext
@@ -7168,6 +7893,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168 (exit $ac_status); } >/dev/null; then 7893 (exit $ac_status); } >/dev/null; then
7169 if test -s conftest.err; then 7894 if test -s conftest.err; then
7170 ac_cpp_err=$ac_c_preproc_warn_flag 7895 ac_cpp_err=$ac_c_preproc_warn_flag
7896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7171 else 7897 else
7172 ac_cpp_err= 7898 ac_cpp_err=
7173 fi 7899 fi
@@ -7198,7 +7924,6 @@ if test "$ac_x_libraries" = no; then
7198 ac_save_LIBS=$LIBS 7924 ac_save_LIBS=$LIBS
7199 LIBS="-lXt $LIBS" 7925 LIBS="-lXt $LIBS"
7200 cat >conftest.$ac_ext <<_ACEOF 7926 cat >conftest.$ac_ext <<_ACEOF
7201#line $LINENO "configure"
7202/* confdefs.h. */ 7927/* confdefs.h. */
7203_ACEOF 7928_ACEOF
7204cat confdefs.h >>conftest.$ac_ext 7929cat confdefs.h >>conftest.$ac_ext
@@ -7215,11 +7940,21 @@ XtMalloc (0)
7215_ACEOF 7940_ACEOF
7216rm -f conftest.$ac_objext conftest$ac_exeext 7941rm -f conftest.$ac_objext conftest$ac_exeext
7217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7218 (eval $ac_link) 2>&5 7943 (eval $ac_link) 2>conftest.er1
7219 ac_status=$? 7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && 7949 (exit $ac_status); } &&
7222 { ac_try='test -s conftest$ac_exeext' 7950 { ac_try='test -z "$ac_c_werror_flag"
7951 || test ! -s conftest.err'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 (eval $ac_try) 2>&5 7959 (eval $ac_try) 2>&5
7225 ac_status=$? 7960 ac_status=$?
@@ -7244,7 +7979,8 @@ do
7244 done 7979 done
7245done 7980done
7246fi 7981fi
7247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7982rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7248fi # $ac_x_libraries = no 7984fi # $ac_x_libraries = no
7249 7985
7250if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 7986if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
@@ -7253,7 +7989,7 @@ if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7253else 7989else
7254 # Record where we found X for the cache. 7990 # Record where we found X for the cache.
7255 ac_cv_have_x="have_x=yes \ 7991 ac_cv_have_x="have_x=yes \
7256 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 7992 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7257fi 7993fi
7258fi 7994fi
7259 7995
@@ -7378,21 +8114,28 @@ if test "${ac_cv_func_malloc_get_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6 8114 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else 8115else
7380 cat >conftest.$ac_ext <<_ACEOF 8116 cat >conftest.$ac_ext <<_ACEOF
7381#line $LINENO "configure"
7382/* confdefs.h. */ 8117/* confdefs.h. */
7383_ACEOF 8118_ACEOF
7384cat confdefs.h >>conftest.$ac_ext 8119cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF 8120cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */ 8121/* end confdefs.h. */
8122/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8124#define malloc_get_state innocuous_malloc_get_state
8125
7387/* System header to define __stub macros and hopefully few prototypes, 8126/* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char malloc_get_state (); below. 8127 which can conflict with char malloc_get_state (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */ 8129 <limits.h> exists even on freestanding compilers. */
8130
7391#ifdef __STDC__ 8131#ifdef __STDC__
7392# include <limits.h> 8132# include <limits.h>
7393#else 8133#else
7394# include <assert.h> 8134# include <assert.h>
7395#endif 8135#endif
8136
8137#undef malloc_get_state
8138
7396/* Override any gcc2 internal prototype to avoid an error. */ 8139/* Override any gcc2 internal prototype to avoid an error. */
7397#ifdef __cplusplus 8140#ifdef __cplusplus
7398extern "C" 8141extern "C"
@@ -7423,11 +8166,21 @@ return f != malloc_get_state;
7423_ACEOF 8166_ACEOF
7424rm -f conftest.$ac_objext conftest$ac_exeext 8167rm -f conftest.$ac_objext conftest$ac_exeext
7425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5 8169 (eval $ac_link) 2>conftest.er1
7427 ac_status=$? 8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && 8175 (exit $ac_status); } &&
7430 { ac_try='test -s conftest$ac_exeext' 8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5 8185 (eval $ac_try) 2>&5
7433 ac_status=$? 8186 ac_status=$?
@@ -7440,7 +8193,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
7440 8193
7441ac_cv_func_malloc_get_state=no 8194ac_cv_func_malloc_get_state=no
7442fi 8195fi
7443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8196rm -f conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
7444fi 8198fi
7445echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 8199echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7446echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 8200echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
@@ -7456,21 +8210,28 @@ if test "${ac_cv_func_malloc_set_state+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6 8210 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else 8211else
7458 cat >conftest.$ac_ext <<_ACEOF 8212 cat >conftest.$ac_ext <<_ACEOF
7459#line $LINENO "configure"
7460/* confdefs.h. */ 8213/* confdefs.h. */
7461_ACEOF 8214_ACEOF
7462cat confdefs.h >>conftest.$ac_ext 8215cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF 8216cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h. */ 8217/* end confdefs.h. */
8218/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8220#define malloc_set_state innocuous_malloc_set_state
8221
7465/* System header to define __stub macros and hopefully few prototypes, 8222/* System header to define __stub macros and hopefully few prototypes,
7466 which can conflict with char malloc_set_state (); below. 8223 which can conflict with char malloc_set_state (); below.
7467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7468 <limits.h> exists even on freestanding compilers. */ 8225 <limits.h> exists even on freestanding compilers. */
8226
7469#ifdef __STDC__ 8227#ifdef __STDC__
7470# include <limits.h> 8228# include <limits.h>
7471#else 8229#else
7472# include <assert.h> 8230# include <assert.h>
7473#endif 8231#endif
8232
8233#undef malloc_set_state
8234
7474/* Override any gcc2 internal prototype to avoid an error. */ 8235/* Override any gcc2 internal prototype to avoid an error. */
7475#ifdef __cplusplus 8236#ifdef __cplusplus
7476extern "C" 8237extern "C"
@@ -7501,11 +8262,21 @@ return f != malloc_set_state;
7501_ACEOF 8262_ACEOF
7502rm -f conftest.$ac_objext conftest$ac_exeext 8263rm -f conftest.$ac_objext conftest$ac_exeext
7503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5 8265 (eval $ac_link) 2>conftest.er1
7505 ac_status=$? 8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && 8271 (exit $ac_status); } &&
7508 { ac_try='test -s conftest$ac_exeext' 8272 { ac_try='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest$ac_exeext'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5 8281 (eval $ac_try) 2>&5
7511 ac_status=$? 8282 ac_status=$?
@@ -7518,7 +8289,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
7518 8289
7519ac_cv_func_malloc_set_state=no 8290ac_cv_func_malloc_set_state=no
7520fi 8291fi
7521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8292rm -f conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
7522fi 8294fi
7523echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 8295echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7524echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 8296echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
@@ -7534,7 +8306,6 @@ if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6 8306 echo $ECHO_N "(cached) $ECHO_C" >&6
7535else 8307else
7536 cat >conftest.$ac_ext <<_ACEOF 8308 cat >conftest.$ac_ext <<_ACEOF
7537#line $LINENO "configure"
7538/* confdefs.h. */ 8309/* confdefs.h. */
7539_ACEOF 8310_ACEOF
7540cat confdefs.h >>conftest.$ac_ext 8311cat confdefs.h >>conftest.$ac_ext
@@ -7551,11 +8322,21 @@ __after_morecore_hook = 0
7551_ACEOF 8322_ACEOF
7552rm -f conftest.$ac_objext conftest$ac_exeext 8323rm -f conftest.$ac_objext conftest$ac_exeext
7553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7554 (eval $ac_link) 2>&5 8325 (eval $ac_link) 2>conftest.er1
7555 ac_status=$? 8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && 8331 (exit $ac_status); } &&
7558 { ac_try='test -s conftest$ac_exeext' 8332 { ac_try='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
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); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5 8341 (eval $ac_try) 2>&5
7561 ac_status=$? 8342 ac_status=$?
@@ -7568,7 +8349,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
7568 8349
7569emacs_cv_var___after_morecore_hook=no 8350emacs_cv_var___after_morecore_hook=no
7570fi 8351fi
7571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8352rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
7572fi 8354fi
7573echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 8355echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7574echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 8356echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
@@ -7615,7 +8397,6 @@ else
7615echo "$as_me:$LINENO: checking $ac_header usability" >&5 8397echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7617cat >conftest.$ac_ext <<_ACEOF 8399cat >conftest.$ac_ext <<_ACEOF
7618#line $LINENO "configure"
7619/* confdefs.h. */ 8400/* confdefs.h. */
7620_ACEOF 8401_ACEOF
7621cat confdefs.h >>conftest.$ac_ext 8402cat confdefs.h >>conftest.$ac_ext
@@ -7626,11 +8407,21 @@ $ac_includes_default
7626_ACEOF 8407_ACEOF
7627rm -f conftest.$ac_objext 8408rm -f conftest.$ac_objext
7628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5 8410 (eval $ac_compile) 2>conftest.er1
7630 ac_status=$? 8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && 8416 (exit $ac_status); } &&
7633 { ac_try='test -s conftest.$ac_objext' 8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 (eval $ac_try) 2>&5 8426 (eval $ac_try) 2>&5
7636 ac_status=$? 8427 ac_status=$?
@@ -7643,7 +8434,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
7643 8434
7644ac_header_compiler=no 8435ac_header_compiler=no
7645fi 8436fi
7646rm -f conftest.$ac_objext conftest.$ac_ext 8437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7648echo "${ECHO_T}$ac_header_compiler" >&6 8439echo "${ECHO_T}$ac_header_compiler" >&6
7649 8440
@@ -7651,7 +8442,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
7651echo "$as_me:$LINENO: checking $ac_header presence" >&5 8442echo "$as_me:$LINENO: checking $ac_header presence" >&5
7652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7653cat >conftest.$ac_ext <<_ACEOF 8444cat >conftest.$ac_ext <<_ACEOF
7654#line $LINENO "configure"
7655/* confdefs.h. */ 8445/* confdefs.h. */
7656_ACEOF 8446_ACEOF
7657cat confdefs.h >>conftest.$ac_ext 8447cat confdefs.h >>conftest.$ac_ext
@@ -7669,6 +8459,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7669 (exit $ac_status); } >/dev/null; then 8459 (exit $ac_status); } >/dev/null; then
7670 if test -s conftest.err; then 8460 if test -s conftest.err; then
7671 ac_cpp_err=$ac_c_preproc_warn_flag 8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7672 else 8463 else
7673 ac_cpp_err= 8464 ac_cpp_err=
7674 fi 8465 fi
@@ -7688,33 +8479,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7688echo "${ECHO_T}$ac_header_preproc" >&6 8479echo "${ECHO_T}$ac_header_preproc" >&6
7689 8480
7690# So? What about this header? 8481# So? What about this header?
7691case $ac_header_compiler:$ac_header_preproc in 8482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7692 yes:no ) 8483 yes:no: )
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7697 ( 8488 ac_header_preproc=yes
7698 cat <<\_ASBOX
7699## ------------------------------------ ##
7700## Report this to bug-autoconf@gnu.org. ##
7701## ------------------------------------ ##
7702_ASBOX
7703 ) |
7704 sed "s/^/$as_me: WARNING: /" >&2
7705 ;; 8489 ;;
7706 no:yes ) 8490 no:yes:* )
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7713 ( 8503 (
7714 cat <<\_ASBOX 8504 cat <<\_ASBOX
7715## ------------------------------------ ## 8505## ------------------------------------------ ##
7716## Report this to bug-autoconf@gnu.org. ## 8506## Report this to the AC_PACKAGE_NAME lists. ##
7717## ------------------------------------ ## 8507## ------------------------------------------ ##
7718_ASBOX 8508_ASBOX
7719 ) | 8509 ) |
7720 sed "s/^/$as_me: WARNING: /" >&2 8510 sed "s/^/$as_me: WARNING: /" >&2
@@ -7725,7 +8515,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7725if eval "test \"\${$as_ac_Header+set}\" = set"; then 8515if eval "test \"\${$as_ac_Header+set}\" = set"; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6 8516 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 8517else
7728 eval "$as_ac_Header=$ac_header_preproc" 8518 eval "$as_ac_Header=\$ac_header_preproc"
7729fi 8519fi
7730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -7750,21 +8540,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6 8540 echo $ECHO_N "(cached) $ECHO_C" >&6
7751else 8541else
7752 cat >conftest.$ac_ext <<_ACEOF 8542 cat >conftest.$ac_ext <<_ACEOF
7753#line $LINENO "configure"
7754/* confdefs.h. */ 8543/* confdefs.h. */
7755_ACEOF 8544_ACEOF
7756cat confdefs.h >>conftest.$ac_ext 8545cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF 8546cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */ 8547/* end confdefs.h. */
8548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8550#define $ac_func innocuous_$ac_func
8551
7759/* System header to define __stub macros and hopefully few prototypes, 8552/* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func (); below. 8553 which can conflict with char $ac_func (); below.
7761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7762 <limits.h> exists even on freestanding compilers. */ 8555 <limits.h> exists even on freestanding compilers. */
8556
7763#ifdef __STDC__ 8557#ifdef __STDC__
7764# include <limits.h> 8558# include <limits.h>
7765#else 8559#else
7766# include <assert.h> 8560# include <assert.h>
7767#endif 8561#endif
8562
8563#undef $ac_func
8564
7768/* Override any gcc2 internal prototype to avoid an error. */ 8565/* Override any gcc2 internal prototype to avoid an error. */
7769#ifdef __cplusplus 8566#ifdef __cplusplus
7770extern "C" 8567extern "C"
@@ -7795,11 +8592,21 @@ return f != $ac_func;
7795_ACEOF 8592_ACEOF
7796rm -f conftest.$ac_objext conftest$ac_exeext 8593rm -f conftest.$ac_objext conftest$ac_exeext
7797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5 8595 (eval $ac_link) 2>conftest.er1
7799 ac_status=$? 8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && 8601 (exit $ac_status); } &&
7802 { ac_try='test -s conftest$ac_exeext' 8602 { ac_try='test -z "$ac_c_werror_flag"
8603 || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5 8611 (eval $ac_try) 2>&5
7805 ac_status=$? 8612 ac_status=$?
@@ -7812,7 +8619,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
7812 8619
7813eval "$as_ac_var=no" 8620eval "$as_ac_var=no"
7814fi 8621fi
7815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8622rm -f conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
7816fi 8624fi
7817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7818echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -7833,7 +8641,6 @@ else
7833 ac_cv_func_mmap_fixed_mapped=no 8641 ac_cv_func_mmap_fixed_mapped=no
7834else 8642else
7835 cat >conftest.$ac_ext <<_ACEOF 8643 cat >conftest.$ac_ext <<_ACEOF
7836#line $LINENO "configure"
7837/* confdefs.h. */ 8644/* confdefs.h. */
7838_ACEOF 8645_ACEOF
7839cat confdefs.h >>conftest.$ac_ext 8646cat confdefs.h >>conftest.$ac_ext
@@ -7941,9 +8748,9 @@ main ()
7941 data2 = (char *) malloc (2 * pagesize); 8748 data2 = (char *) malloc (2 * pagesize);
7942 if (!data2) 8749 if (!data2)
7943 exit (1); 8750 exit (1);
7944 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 8751 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7945 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8752 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7946 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7947 exit (1); 8754 exit (1);
7948 for (i = 0; i < pagesize; ++i) 8755 for (i = 0; i < pagesize; ++i)
7949 if (*(data + i) != *(data2 + i)) 8756 if (*(data + i) != *(data2 + i))
@@ -7986,7 +8793,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
7986( exit $ac_status ) 8793( exit $ac_status )
7987ac_cv_func_mmap_fixed_mapped=no 8794ac_cv_func_mmap_fixed_mapped=no
7988fi 8795fi
7989rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7990fi 8797fi
7991fi 8798fi
7992echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 8799echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
@@ -8015,7 +8822,6 @@ else
8015 ac_check_lib_save_LIBS=$LIBS 8822 ac_check_lib_save_LIBS=$LIBS
8016LIBS="-ldnet $LIBS" 8823LIBS="-ldnet $LIBS"
8017cat >conftest.$ac_ext <<_ACEOF 8824cat >conftest.$ac_ext <<_ACEOF
8018#line $LINENO "configure"
8019/* confdefs.h. */ 8825/* confdefs.h. */
8020_ACEOF 8826_ACEOF
8021cat confdefs.h >>conftest.$ac_ext 8827cat confdefs.h >>conftest.$ac_ext
@@ -8039,11 +8845,21 @@ dnet_ntoa ();
8039_ACEOF 8845_ACEOF
8040rm -f conftest.$ac_objext conftest$ac_exeext 8846rm -f conftest.$ac_objext conftest$ac_exeext
8041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>&5 8848 (eval $ac_link) 2>conftest.er1
8043 ac_status=$? 8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && 8854 (exit $ac_status); } &&
8046 { ac_try='test -s conftest$ac_exeext' 8855 { ac_try='test -z "$ac_c_werror_flag"
8856 || test ! -s conftest.err'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5 8864 (eval $ac_try) 2>&5
8049 ac_status=$? 8865 ac_status=$?
@@ -8056,7 +8872,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8056 8872
8057ac_cv_lib_dnet_dnet_ntoa=no 8873ac_cv_lib_dnet_dnet_ntoa=no
8058fi 8874fi
8059rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8875rm -f conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext conftest.$ac_ext
8060LIBS=$ac_check_lib_save_LIBS 8877LIBS=$ac_check_lib_save_LIBS
8061fi 8878fi
8062echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8879echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
@@ -8079,7 +8896,6 @@ else
8079 ac_check_lib_save_LIBS=$LIBS 8896 ac_check_lib_save_LIBS=$LIBS
8080LIBS="-lXbsd $LIBS" 8897LIBS="-lXbsd $LIBS"
8081cat >conftest.$ac_ext <<_ACEOF 8898cat >conftest.$ac_ext <<_ACEOF
8082#line $LINENO "configure"
8083/* confdefs.h. */ 8899/* confdefs.h. */
8084_ACEOF 8900_ACEOF
8085cat confdefs.h >>conftest.$ac_ext 8901cat confdefs.h >>conftest.$ac_ext
@@ -8097,11 +8913,21 @@ main ();
8097_ACEOF 8913_ACEOF
8098rm -f conftest.$ac_objext conftest$ac_exeext 8914rm -f conftest.$ac_objext conftest$ac_exeext
8099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5 8916 (eval $ac_link) 2>conftest.er1
8101 ac_status=$? 8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && 8922 (exit $ac_status); } &&
8104 { ac_try='test -s conftest$ac_exeext' 8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5 8932 (eval $ac_try) 2>&5
8107 ac_status=$? 8933 ac_status=$?
@@ -8114,7 +8940,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8114 8940
8115ac_cv_lib_Xbsd_main=no 8941ac_cv_lib_Xbsd_main=no
8116fi 8942fi
8117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8943rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8118LIBS=$ac_check_lib_save_LIBS 8945LIBS=$ac_check_lib_save_LIBS
8119fi 8946fi
8120echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 8947echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
@@ -8133,7 +8960,6 @@ else
8133 ac_check_lib_save_LIBS=$LIBS 8960 ac_check_lib_save_LIBS=$LIBS
8134LIBS="-lpthreads $LIBS" 8961LIBS="-lpthreads $LIBS"
8135cat >conftest.$ac_ext <<_ACEOF 8962cat >conftest.$ac_ext <<_ACEOF
8136#line $LINENO "configure"
8137/* confdefs.h. */ 8963/* confdefs.h. */
8138_ACEOF 8964_ACEOF
8139cat confdefs.h >>conftest.$ac_ext 8965cat confdefs.h >>conftest.$ac_ext
@@ -8157,11 +8983,21 @@ cma_open ();
8157_ACEOF 8983_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext 8984rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>&5 8986 (eval $ac_link) 2>conftest.er1
8161 ac_status=$? 8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && 8992 (exit $ac_status); } &&
8164 { ac_try='test -s conftest$ac_exeext' 8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5 9002 (eval $ac_try) 2>&5
8167 ac_status=$? 9003 ac_status=$?
@@ -8174,7 +9010,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8174 9010
8175ac_cv_lib_pthreads_cma_open=no 9011ac_cv_lib_pthreads_cma_open=no
8176fi 9012fi
8177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9013rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
8178LIBS=$ac_check_lib_save_LIBS 9015LIBS=$ac_check_lib_save_LIBS
8179fi 9016fi
8180echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 9017echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
@@ -8216,7 +9053,6 @@ else
8216 9053
8217 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 9054 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8218 cat >conftest.$ac_ext <<_ACEOF 9055 cat >conftest.$ac_ext <<_ACEOF
8219#line $LINENO "configure"
8220/* confdefs.h. */ 9056/* confdefs.h. */
8221_ACEOF 9057_ACEOF
8222cat confdefs.h >>conftest.$ac_ext 9058cat confdefs.h >>conftest.$ac_ext
@@ -8233,11 +9069,21 @@ int i;
8233_ACEOF 9069_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext 9070rm -f conftest.$ac_objext conftest$ac_exeext
8235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236 (eval $ac_link) 2>&5 9072 (eval $ac_link) 2>conftest.er1
8237 ac_status=$? 9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && 9078 (exit $ac_status); } &&
8240 { ac_try='test -s conftest$ac_exeext' 9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest$ac_exeext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 (eval $ac_try) 2>&5 9088 (eval $ac_try) 2>&5
8243 ac_status=$? 9089 ac_status=$?
@@ -8250,7 +9096,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8250 9096
8251gdb_cv_bigtoc= 9097gdb_cv_bigtoc=
8252fi 9098fi
8253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9099rm -f conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
8254 9101
8255fi 9102fi
8256echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 9103echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
@@ -8284,7 +9131,6 @@ if test "${HAVE_X11}" = "yes"; then
8284 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 9131 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8285echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 9132echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8286 cat >conftest.$ac_ext <<_ACEOF 9133 cat >conftest.$ac_ext <<_ACEOF
8287#line $LINENO "configure"
8288/* confdefs.h. */ 9134/* confdefs.h. */
8289_ACEOF 9135_ACEOF
8290cat confdefs.h >>conftest.$ac_ext 9136cat confdefs.h >>conftest.$ac_ext
@@ -8301,11 +9147,21 @@ XOpenDisplay ("foo");
8301_ACEOF 9147_ACEOF
8302rm -f conftest.$ac_objext conftest$ac_exeext 9148rm -f conftest.$ac_objext conftest$ac_exeext
8303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>&5 9150 (eval $ac_link) 2>conftest.er1
8305 ac_status=$? 9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && 9156 (exit $ac_status); } &&
8308 { ac_try='test -s conftest$ac_exeext' 9157 { ac_try='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5 9166 (eval $ac_try) 2>&5
8311 ac_status=$? 9167 ac_status=$?
@@ -8318,7 +9174,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8318 9174
8319xlinux_first_failure=yes 9175xlinux_first_failure=yes
8320fi 9176fi
8321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9177rm -f conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
8322 if test "${xlinux_first_failure}" = "yes"; then 9179 if test "${xlinux_first_failure}" = "yes"; then
8323 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 9180 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8324 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 9181 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -8329,7 +9186,6 @@ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8329 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 9186 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8330 LIBS="$LIBS -b i486-linuxaout" 9187 LIBS="$LIBS -b i486-linuxaout"
8331 cat >conftest.$ac_ext <<_ACEOF 9188 cat >conftest.$ac_ext <<_ACEOF
8332#line $LINENO "configure"
8333/* confdefs.h. */ 9189/* confdefs.h. */
8334_ACEOF 9190_ACEOF
8335cat confdefs.h >>conftest.$ac_ext 9191cat confdefs.h >>conftest.$ac_ext
@@ -8346,11 +9202,21 @@ XOpenDisplay ("foo");
8346_ACEOF 9202_ACEOF
8347rm -f conftest.$ac_objext conftest$ac_exeext 9203rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349 (eval $ac_link) 2>&5 9205 (eval $ac_link) 2>conftest.er1
8350 ac_status=$? 9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } && 9211 (exit $ac_status); } &&
8353 { ac_try='test -s conftest$ac_exeext' 9212 { ac_try='test -z "$ac_c_werror_flag"
9213 || test ! -s conftest.err'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest$ac_exeext'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5 9221 (eval $ac_try) 2>&5
8356 ac_status=$? 9222 ac_status=$?
@@ -8363,7 +9229,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8363 9229
8364xlinux_second_failure=yes 9230xlinux_second_failure=yes
8365fi 9231fi
8366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9232rm -f conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
8367 if test "${xlinux_second_failure}" = "yes"; then 9234 if test "${xlinux_second_failure}" = "yes"; then
8368 # If we get the same failure with -b, there is no use adding -b. 9235 # If we get the same failure with -b, there is no use adding -b.
8369 # So take it out. This plays safe. 9236 # So take it out. This plays safe.
@@ -8388,7 +9255,6 @@ echo "${ECHO_T}no" >&6
8388 echo "$as_me:$LINENO: checking for Xkb" >&5 9255 echo "$as_me:$LINENO: checking for Xkb" >&5
8389echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 9256echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8390 cat >conftest.$ac_ext <<_ACEOF 9257 cat >conftest.$ac_ext <<_ACEOF
8391#line $LINENO "configure"
8392/* confdefs.h. */ 9258/* confdefs.h. */
8393_ACEOF 9259_ACEOF
8394cat confdefs.h >>conftest.$ac_ext 9260cat confdefs.h >>conftest.$ac_ext
@@ -8406,11 +9272,21 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8406_ACEOF 9272_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext 9273rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5 9275 (eval $ac_link) 2>conftest.er1
8410 ac_status=$? 9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && 9281 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext' 9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5 9291 (eval $ac_try) 2>&5
8416 ac_status=$? 9292 ac_status=$?
@@ -8423,7 +9299,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8423 9299
8424emacs_xkb=no 9300emacs_xkb=no
8425fi 9301fi
8426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9302rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: $emacs_xkb" >&5 9304 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8428echo "${ECHO_T}$emacs_xkb" >&6 9305echo "${ECHO_T}$emacs_xkb" >&6
8429 if test $emacs_xkb = yes; then 9306 if test $emacs_xkb = yes; then
@@ -8448,21 +9325,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6 9325 echo $ECHO_N "(cached) $ECHO_C" >&6
8449else 9326else
8450 cat >conftest.$ac_ext <<_ACEOF 9327 cat >conftest.$ac_ext <<_ACEOF
8451#line $LINENO "configure"
8452/* confdefs.h. */ 9328/* confdefs.h. */
8453_ACEOF 9329_ACEOF
8454cat confdefs.h >>conftest.$ac_ext 9330cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF 9331cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */ 9332/* end confdefs.h. */
9333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9335#define $ac_func innocuous_$ac_func
9336
8457/* System header to define __stub macros and hopefully few prototypes, 9337/* System header to define __stub macros and hopefully few prototypes,
8458 which can conflict with char $ac_func (); below. 9338 which can conflict with char $ac_func (); below.
8459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8460 <limits.h> exists even on freestanding compilers. */ 9340 <limits.h> exists even on freestanding compilers. */
9341
8461#ifdef __STDC__ 9342#ifdef __STDC__
8462# include <limits.h> 9343# include <limits.h>
8463#else 9344#else
8464# include <assert.h> 9345# include <assert.h>
8465#endif 9346#endif
9347
9348#undef $ac_func
9349
8466/* Override any gcc2 internal prototype to avoid an error. */ 9350/* Override any gcc2 internal prototype to avoid an error. */
8467#ifdef __cplusplus 9351#ifdef __cplusplus
8468extern "C" 9352extern "C"
@@ -8493,11 +9377,21 @@ return f != $ac_func;
8493_ACEOF 9377_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext 9378rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5 9380 (eval $ac_link) 2>conftest.er1
8497 ac_status=$? 9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && 9386 (exit $ac_status); } &&
8500 { ac_try='test -s conftest$ac_exeext' 9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5 9396 (eval $ac_try) 2>&5
8503 ac_status=$? 9397 ac_status=$?
@@ -8510,7 +9404,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8510 9404
8511eval "$as_ac_var=no" 9405eval "$as_ac_var=no"
8512fi 9406fi
8513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9407rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
8514fi 9409fi
8515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8516echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -8531,7 +9426,6 @@ echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8531 echo $ECHO_N "(cached) $ECHO_C" >&6 9426 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else 9427else
8533 cat >conftest.$ac_ext <<_ACEOF 9428 cat >conftest.$ac_ext <<_ACEOF
8534#line $LINENO "configure"
8535/* confdefs.h. */ 9429/* confdefs.h. */
8536_ACEOF 9430_ACEOF
8537cat confdefs.h >>conftest.$ac_ext 9431cat confdefs.h >>conftest.$ac_ext
@@ -8551,11 +9445,21 @@ fail;
8551_ACEOF 9445_ACEOF
8552rm -f conftest.$ac_objext conftest$ac_exeext 9446rm -f conftest.$ac_objext conftest$ac_exeext
8553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5 9448 (eval $ac_link) 2>conftest.er1
8555 ac_status=$? 9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && 9454 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext' 9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5 9464 (eval $ac_try) 2>&5
8561 ac_status=$? 9465 ac_status=$?
@@ -8568,7 +9472,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8568 9472
8569emacs_cv_x11_version_6=no 9473emacs_cv_x11_version_6=no
8570fi 9474fi
8571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9475rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
8572fi 9477fi
8573 9478
8574 if test $emacs_cv_x11_version_6 = yes; then 9479 if test $emacs_cv_x11_version_6 = yes; then
@@ -8592,7 +9497,6 @@ echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8592 echo $ECHO_N "(cached) $ECHO_C" >&6 9497 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else 9498else
8594 cat >conftest.$ac_ext <<_ACEOF 9499 cat >conftest.$ac_ext <<_ACEOF
8595#line $LINENO "configure"
8596/* confdefs.h. */ 9500/* confdefs.h. */
8597_ACEOF 9501_ACEOF
8598cat confdefs.h >>conftest.$ac_ext 9502cat confdefs.h >>conftest.$ac_ext
@@ -8612,11 +9516,21 @@ fail;
8612_ACEOF 9516_ACEOF
8613rm -f conftest.$ac_objext conftest$ac_exeext 9517rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8615 (eval $ac_link) 2>&5 9519 (eval $ac_link) 2>conftest.er1
8616 ac_status=$? 9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && 9525 (exit $ac_status); } &&
8619 { ac_try='test -s conftest$ac_exeext' 9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest$ac_exeext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5 9535 (eval $ac_try) 2>&5
8622 ac_status=$? 9536 ac_status=$?
@@ -8629,7 +9543,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8629 9543
8630emacs_cv_x11_version_5=no 9544emacs_cv_x11_version_5=no
8631fi 9545fi
8632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9546rm -f conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
8633fi 9548fi
8634 9549
8635 if test $emacs_cv_x11_version_5 = yes; then 9550 if test $emacs_cv_x11_version_5 = yes; then
@@ -8788,21 +9703,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6 9703 echo $ECHO_N "(cached) $ECHO_C" >&6
8789else 9704else
8790 cat >conftest.$ac_ext <<_ACEOF 9705 cat >conftest.$ac_ext <<_ACEOF
8791#line $LINENO "configure"
8792/* confdefs.h. */ 9706/* confdefs.h. */
8793_ACEOF 9707_ACEOF
8794cat confdefs.h >>conftest.$ac_ext 9708cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF 9709cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h. */ 9710/* end confdefs.h. */
9711/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713#define $ac_func innocuous_$ac_func
9714
8797/* System header to define __stub macros and hopefully few prototypes, 9715/* System header to define __stub macros and hopefully few prototypes,
8798 which can conflict with char $ac_func (); below. 9716 which can conflict with char $ac_func (); below.
8799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800 <limits.h> exists even on freestanding compilers. */ 9718 <limits.h> exists even on freestanding compilers. */
9719
8801#ifdef __STDC__ 9720#ifdef __STDC__
8802# include <limits.h> 9721# include <limits.h>
8803#else 9722#else
8804# include <assert.h> 9723# include <assert.h>
8805#endif 9724#endif
9725
9726#undef $ac_func
9727
8806/* Override any gcc2 internal prototype to avoid an error. */ 9728/* Override any gcc2 internal prototype to avoid an error. */
8807#ifdef __cplusplus 9729#ifdef __cplusplus
8808extern "C" 9730extern "C"
@@ -8833,11 +9755,21 @@ return f != $ac_func;
8833_ACEOF 9755_ACEOF
8834rm -f conftest.$ac_objext conftest$ac_exeext 9756rm -f conftest.$ac_objext conftest$ac_exeext
8835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836 (eval $ac_link) 2>&5 9758 (eval $ac_link) 2>conftest.er1
8837 ac_status=$? 9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && 9764 (exit $ac_status); } &&
8840 { ac_try='test -s conftest$ac_exeext' 9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5 9774 (eval $ac_try) 2>&5
8843 ac_status=$? 9775 ac_status=$?
@@ -8850,7 +9782,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8850 9782
8851eval "$as_ac_var=no" 9783eval "$as_ac_var=no"
8852fi 9784fi
8853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9785rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
8854fi 9787fi
8855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9789echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -8879,7 +9812,6 @@ echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8879 echo $ECHO_N "(cached) $ECHO_C" >&6 9812 echo $ECHO_N "(cached) $ECHO_C" >&6
8880else 9813else
8881 cat >conftest.$ac_ext <<_ACEOF 9814 cat >conftest.$ac_ext <<_ACEOF
8882#line $LINENO "configure"
8883/* confdefs.h. */ 9815/* confdefs.h. */
8884_ACEOF 9816_ACEOF
8885cat confdefs.h >>conftest.$ac_ext 9817cat confdefs.h >>conftest.$ac_ext
@@ -8898,11 +9830,21 @@ main ()
8898_ACEOF 9830_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext 9831rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901 (eval $ac_link) 2>&5 9833 (eval $ac_link) 2>conftest.er1
8902 ac_status=$? 9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } && 9839 (exit $ac_status); } &&
8905 { ac_try='test -s conftest$ac_exeext' 9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5 9849 (eval $ac_try) 2>&5
8908 ac_status=$? 9850 ac_status=$?
@@ -8915,7 +9857,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8915 9857
8916emacs_cv_x11_version_5_with_xaw=no 9858emacs_cv_x11_version_5_with_xaw=no
8917fi 9859fi
8918rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9860rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
8919fi 9862fi
8920 9863
8921 if test $emacs_cv_x11_version_5_with_xaw = yes; then 9864 if test $emacs_cv_x11_version_5_with_xaw = yes; then
@@ -8941,7 +9884,6 @@ echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8941 echo $ECHO_N "(cached) $ECHO_C" >&6 9884 echo $ECHO_N "(cached) $ECHO_C" >&6
8942else 9885else
8943 cat >conftest.$ac_ext <<_ACEOF 9886 cat >conftest.$ac_ext <<_ACEOF
8944#line $LINENO "configure"
8945/* confdefs.h. */ 9887/* confdefs.h. */
8946_ACEOF 9888_ACEOF
8947cat confdefs.h >>conftest.$ac_ext 9889cat confdefs.h >>conftest.$ac_ext
@@ -8961,11 +9903,21 @@ fail;
8961_ACEOF 9903_ACEOF
8962rm -f conftest.$ac_objext conftest$ac_exeext 9904rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5 9906 (eval $ac_link) 2>conftest.er1
8965 ac_status=$? 9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && 9912 (exit $ac_status); } &&
8968 { ac_try='test -s conftest$ac_exeext' 9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5 9922 (eval $ac_try) 2>&5
8971 ac_status=$? 9923 ac_status=$?
@@ -8978,7 +9930,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
8978 9930
8979emacs_cv_x11_toolkit_version_6=no 9931emacs_cv_x11_toolkit_version_6=no
8980fi 9932fi
8981rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9933rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
8982fi 9935fi
8983 9936
8984 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 9937 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
@@ -9010,7 +9963,6 @@ else
9010 ac_check_lib_save_LIBS=$LIBS 9963 ac_check_lib_save_LIBS=$LIBS
9011LIBS="-lXmu $LIBS" 9964LIBS="-lXmu $LIBS"
9012cat >conftest.$ac_ext <<_ACEOF 9965cat >conftest.$ac_ext <<_ACEOF
9013#line $LINENO "configure"
9014/* confdefs.h. */ 9966/* confdefs.h. */
9015_ACEOF 9967_ACEOF
9016cat confdefs.h >>conftest.$ac_ext 9968cat confdefs.h >>conftest.$ac_ext
@@ -9034,11 +9986,21 @@ XmuConvertStandardSelection ();
9034_ACEOF 9986_ACEOF
9035rm -f conftest.$ac_objext conftest$ac_exeext 9987rm -f conftest.$ac_objext conftest$ac_exeext
9036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9037 (eval $ac_link) 2>&5 9989 (eval $ac_link) 2>conftest.er1
9038 ac_status=$? 9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } && 9995 (exit $ac_status); } &&
9041 { ac_try='test -s conftest$ac_exeext' 9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5 10005 (eval $ac_try) 2>&5
9044 ac_status=$? 10006 ac_status=$?
@@ -9051,7 +10013,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
9051 10013
9052ac_cv_lib_Xmu_XmuConvertStandardSelection=no 10014ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9053fi 10015fi
9054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10016rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
9055LIBS=$ac_check_lib_save_LIBS 10018LIBS=$ac_check_lib_save_LIBS
9056fi 10019fi
9057echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 10020echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
@@ -9080,7 +10043,6 @@ else
9080 ac_check_lib_save_LIBS=$LIBS 10043 ac_check_lib_save_LIBS=$LIBS
9081LIBS="-lXext $LIBS" 10044LIBS="-lXext $LIBS"
9082cat >conftest.$ac_ext <<_ACEOF 10045cat >conftest.$ac_ext <<_ACEOF
9083#line $LINENO "configure"
9084/* confdefs.h. */ 10046/* confdefs.h. */
9085_ACEOF 10047_ACEOF
9086cat confdefs.h >>conftest.$ac_ext 10048cat confdefs.h >>conftest.$ac_ext
@@ -9104,11 +10066,21 @@ XShapeQueryExtension ();
9104_ACEOF 10066_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext 10067rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5 10069 (eval $ac_link) 2>conftest.er1
9108 ac_status=$? 10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && 10075 (exit $ac_status); } &&
9111 { ac_try='test -s conftest$ac_exeext' 10076 { ac_try='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 (eval $ac_try) 2>&5 10085 (eval $ac_try) 2>&5
9114 ac_status=$? 10086 ac_status=$?
@@ -9121,7 +10093,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
9121 10093
9122ac_cv_lib_Xext_XShapeQueryExtension=no 10094ac_cv_lib_Xext_XShapeQueryExtension=no
9123fi 10095fi
9124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10096rm -f conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
9125LIBS=$ac_check_lib_save_LIBS 10098LIBS=$ac_check_lib_save_LIBS
9126fi 10099fi
9127echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 10100echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
@@ -9152,7 +10125,6 @@ else
9152 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 10125 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9153 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 10126 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9154 cat >conftest.$ac_ext <<_ACEOF 10127 cat >conftest.$ac_ext <<_ACEOF
9155#line $LINENO "configure"
9156/* confdefs.h. */ 10128/* confdefs.h. */
9157_ACEOF 10129_ACEOF
9158cat confdefs.h >>conftest.$ac_ext 10130cat confdefs.h >>conftest.$ac_ext
@@ -9169,11 +10141,21 @@ int x = 5;
9169_ACEOF 10141_ACEOF
9170rm -f conftest.$ac_objext 10142rm -f conftest.$ac_objext
9171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>&5 10144 (eval $ac_compile) 2>conftest.er1
9173 ac_status=$? 10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && 10150 (exit $ac_status); } &&
9176 { ac_try='test -s conftest.$ac_objext' 10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5 10160 (eval $ac_try) 2>&5
9179 ac_status=$? 10161 ac_status=$?
@@ -9186,7 +10168,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
9186 10168
9187emacs_cv_lesstif=no 10169emacs_cv_lesstif=no
9188fi 10170fi
9189rm -f conftest.$ac_objext conftest.$ac_ext 10171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9190fi 10172fi
9191echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 10173echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9192echo "${ECHO_T}$emacs_cv_lesstif" >&6 10174echo "${ECHO_T}$emacs_cv_lesstif" >&6
@@ -9208,7 +10190,6 @@ if test "${emacs_cv_motif_version_2_1+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6 10190 echo $ECHO_N "(cached) $ECHO_C" >&6
9209else 10191else
9210 cat >conftest.$ac_ext <<_ACEOF 10192 cat >conftest.$ac_ext <<_ACEOF
9211#line $LINENO "configure"
9212/* confdefs.h. */ 10193/* confdefs.h. */
9213_ACEOF 10194_ACEOF
9214cat confdefs.h >>conftest.$ac_ext 10195cat confdefs.h >>conftest.$ac_ext
@@ -9229,11 +10210,21 @@ Motif version prior to 2.1.
9229_ACEOF 10210_ACEOF
9230rm -f conftest.$ac_objext 10211rm -f conftest.$ac_objext
9231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232 (eval $ac_compile) 2>&5 10213 (eval $ac_compile) 2>conftest.er1
9233 ac_status=$? 10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } && 10219 (exit $ac_status); } &&
9236 { ac_try='test -s conftest.$ac_objext' 10220 { ac_try='test -z "$ac_c_werror_flag"
10221 || test ! -s conftest.err'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5 10229 (eval $ac_try) 2>&5
9239 ac_status=$? 10230 ac_status=$?
@@ -9246,7 +10237,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
9246 10237
9247emacs_cv_motif_version_2_1=no 10238emacs_cv_motif_version_2_1=no
9248fi 10239fi
9249rm -f conftest.$ac_objext conftest.$ac_ext 10240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250fi 10241fi
9251echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 10242echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9252echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 10243echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
@@ -9266,7 +10257,6 @@ else
9266 ac_check_lib_save_LIBS=$LIBS 10257 ac_check_lib_save_LIBS=$LIBS
9267LIBS="-lXp $LIBS" 10258LIBS="-lXp $LIBS"
9268cat >conftest.$ac_ext <<_ACEOF 10259cat >conftest.$ac_ext <<_ACEOF
9269#line $LINENO "configure"
9270/* confdefs.h. */ 10260/* confdefs.h. */
9271_ACEOF 10261_ACEOF
9272cat confdefs.h >>conftest.$ac_ext 10262cat confdefs.h >>conftest.$ac_ext
@@ -9290,11 +10280,21 @@ XpCreateContext ();
9290_ACEOF 10280_ACEOF
9291rm -f conftest.$ac_objext conftest$ac_exeext 10281rm -f conftest.$ac_objext conftest$ac_exeext
9292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5 10283 (eval $ac_link) 2>conftest.er1
9294 ac_status=$? 10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && 10289 (exit $ac_status); } &&
9297 { ac_try='test -s conftest$ac_exeext' 10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5 10299 (eval $ac_try) 2>&5
9300 ac_status=$? 10300 ac_status=$?
@@ -9307,7 +10307,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
9307 10307
9308ac_cv_lib_Xp_XpCreateContext=no 10308ac_cv_lib_Xp_XpCreateContext=no
9309fi 10309fi
9310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10310rm -f conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
9311LIBS=$ac_check_lib_save_LIBS 10312LIBS=$ac_check_lib_save_LIBS
9312fi 10313fi
9313echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 10314echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
@@ -9336,7 +10337,6 @@ if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6 10337 echo $ECHO_N "(cached) $ECHO_C" >&6
9337else 10338else
9338 cat >conftest.$ac_ext <<_ACEOF 10339 cat >conftest.$ac_ext <<_ACEOF
9339#line $LINENO "configure"
9340/* confdefs.h. */ 10340/* confdefs.h. */
9341_ACEOF 10341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext 10342cat confdefs.h >>conftest.$ac_ext
@@ -9354,6 +10354,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354 (exit $ac_status); } >/dev/null; then 10354 (exit $ac_status); } >/dev/null; then
9355 if test -s conftest.err; then 10355 if test -s conftest.err; then
9356 ac_cpp_err=$ac_c_preproc_warn_flag 10356 ac_cpp_err=$ac_c_preproc_warn_flag
10357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9357 else 10358 else
9358 ac_cpp_err= 10359 ac_cpp_err=
9359 fi 10360 fi
@@ -9381,7 +10382,6 @@ else
9381 ac_check_lib_save_LIBS=$LIBS 10382 ac_check_lib_save_LIBS=$LIBS
9382LIBS="-lXaw3d $LIBS" 10383LIBS="-lXaw3d $LIBS"
9383cat >conftest.$ac_ext <<_ACEOF 10384cat >conftest.$ac_ext <<_ACEOF
9384#line $LINENO "configure"
9385/* confdefs.h. */ 10385/* confdefs.h. */
9386_ACEOF 10386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext 10387cat confdefs.h >>conftest.$ac_ext
@@ -9405,11 +10405,21 @@ XawScrollbarSetThumb ();
9405_ACEOF 10405_ACEOF
9406rm -f conftest.$ac_objext conftest$ac_exeext 10406rm -f conftest.$ac_objext conftest$ac_exeext
9407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5 10408 (eval $ac_link) 2>conftest.er1
9409 ac_status=$? 10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && 10414 (exit $ac_status); } &&
9412 { ac_try='test -s conftest$ac_exeext' 10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5 10424 (eval $ac_try) 2>&5
9415 ac_status=$? 10425 ac_status=$?
@@ -9422,7 +10432,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
9422 10432
9423ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no 10433ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
9424fi 10434fi
9425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10435rm -f conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
9426LIBS=$ac_check_lib_save_LIBS 10437LIBS=$ac_check_lib_save_LIBS
9427fi 10438fi
9428echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 10439echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
@@ -9473,7 +10484,6 @@ _ACEOF
9473fi 10484fi
9474 10485
9475cat >conftest.$ac_ext <<_ACEOF 10486cat >conftest.$ac_ext <<_ACEOF
9476#line $LINENO "configure"
9477/* confdefs.h. */ 10487/* confdefs.h. */
9478_ACEOF 10488_ACEOF
9479cat confdefs.h >>conftest.$ac_ext 10489cat confdefs.h >>conftest.$ac_ext
@@ -9492,11 +10502,21 @@ XIMProc callback;
9492_ACEOF 10502_ACEOF
9493rm -f conftest.$ac_objext 10503rm -f conftest.$ac_objext
9494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9495 (eval $ac_compile) 2>&5 10505 (eval $ac_compile) 2>conftest.er1
9496 ac_status=$? 10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && 10511 (exit $ac_status); } &&
9499 { ac_try='test -s conftest.$ac_objext' 10512 { ac_try='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5 10521 (eval $ac_try) 2>&5
9502 ac_status=$? 10522 ac_status=$?
@@ -9514,7 +10534,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
9514 10534
9515HAVE_XIM=no 10535HAVE_XIM=no
9516fi 10536fi
9517rm -f conftest.$ac_objext conftest.$ac_ext 10537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9518 10538
9519 10539
9520if test "${with_xim}" != "no"; then 10540if test "${with_xim}" != "no"; then
@@ -9532,7 +10552,6 @@ if test "${HAVE_XIM}" != "no"; then
9532 CFLAGS="$CFLAGS --pedantic-errors" 10552 CFLAGS="$CFLAGS --pedantic-errors"
9533 fi 10553 fi
9534 cat >conftest.$ac_ext <<_ACEOF 10554 cat >conftest.$ac_ext <<_ACEOF
9535#line $LINENO "configure"
9536/* confdefs.h. */ 10555/* confdefs.h. */
9537_ACEOF 10556_ACEOF
9538cat confdefs.h >>conftest.$ac_ext 10557cat confdefs.h >>conftest.$ac_ext
@@ -9564,11 +10583,21 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9564_ACEOF 10583_ACEOF
9565rm -f conftest.$ac_objext 10584rm -f conftest.$ac_objext
9566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5 10586 (eval $ac_compile) 2>conftest.er1
9568 ac_status=$? 10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && 10592 (exit $ac_status); } &&
9571 { ac_try='test -s conftest.$ac_objext' 10593 { ac_try='test -z "$ac_c_werror_flag"
10594 || test ! -s conftest.err'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; } &&
10600 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5 10602 (eval $ac_try) 2>&5
9574 ac_status=$? 10603 ac_status=$?
@@ -9580,7 +10609,7 @@ else
9580sed 's/^/| /' conftest.$ac_ext >&5 10609sed 's/^/| /' conftest.$ac_ext >&5
9581 10610
9582fi 10611fi
9583rm -f conftest.$ac_objext conftest.$ac_ext 10612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9584 10613
9585 if test "$emacs_cv_arg6_star" = yes; then 10614 if test "$emacs_cv_arg6_star" = yes; then
9586 cat >>confdefs.h <<\_ACEOF 10615 cat >>confdefs.h <<\_ACEOF
@@ -9613,7 +10642,6 @@ else
9613echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 10642echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9614echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6 10643echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9615cat >conftest.$ac_ext <<_ACEOF 10644cat >conftest.$ac_ext <<_ACEOF
9616#line $LINENO "configure"
9617/* confdefs.h. */ 10645/* confdefs.h. */
9618_ACEOF 10646_ACEOF
9619cat confdefs.h >>conftest.$ac_ext 10647cat confdefs.h >>conftest.$ac_ext
@@ -9624,11 +10652,21 @@ $ac_includes_default
9624_ACEOF 10652_ACEOF
9625rm -f conftest.$ac_objext 10653rm -f conftest.$ac_objext
9626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5 10655 (eval $ac_compile) 2>conftest.er1
9628 ac_status=$? 10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && 10661 (exit $ac_status); } &&
9631 { ac_try='test -s conftest.$ac_objext' 10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5 10671 (eval $ac_try) 2>&5
9634 ac_status=$? 10672 ac_status=$?
@@ -9641,7 +10679,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
9641 10679
9642ac_header_compiler=no 10680ac_header_compiler=no
9643fi 10681fi
9644rm -f conftest.$ac_objext conftest.$ac_ext 10682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646echo "${ECHO_T}$ac_header_compiler" >&6 10684echo "${ECHO_T}$ac_header_compiler" >&6
9647 10685
@@ -9649,7 +10687,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
9649echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 10687echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9650echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6 10688echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9651cat >conftest.$ac_ext <<_ACEOF 10689cat >conftest.$ac_ext <<_ACEOF
9652#line $LINENO "configure"
9653/* confdefs.h. */ 10690/* confdefs.h. */
9654_ACEOF 10691_ACEOF
9655cat confdefs.h >>conftest.$ac_ext 10692cat confdefs.h >>conftest.$ac_ext
@@ -9667,6 +10704,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (exit $ac_status); } >/dev/null; then 10704 (exit $ac_status); } >/dev/null; then
9668 if test -s conftest.err; then 10705 if test -s conftest.err; then
9669 ac_cpp_err=$ac_c_preproc_warn_flag 10706 ac_cpp_err=$ac_c_preproc_warn_flag
10707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9670 else 10708 else
9671 ac_cpp_err= 10709 ac_cpp_err=
9672 fi 10710 fi
@@ -9686,33 +10724,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686echo "${ECHO_T}$ac_header_preproc" >&6 10724echo "${ECHO_T}$ac_header_preproc" >&6
9687 10725
9688# So? What about this header? 10726# So? What about this header?
9689case $ac_header_compiler:$ac_header_preproc in 10727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 yes:no ) 10728 yes:no: )
9691 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 10729 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9692echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10730echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 10731 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
9694echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} 10732echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
9695 ( 10733 ac_header_preproc=yes
9696 cat <<\_ASBOX
9697## ------------------------------------ ##
9698## Report this to bug-autoconf@gnu.org. ##
9699## ------------------------------------ ##
9700_ASBOX
9701 ) |
9702 sed "s/^/$as_me: WARNING: /" >&2
9703 ;; 10734 ;;
9704 no:yes ) 10735 no:yes:* )
9705 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 10736 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9706echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} 10737echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 10738 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9708echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} 10739echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10741echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10743echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 10744 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9710echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} 10745echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10747echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
9711 ( 10748 (
9712 cat <<\_ASBOX 10749 cat <<\_ASBOX
9713## ------------------------------------ ## 10750## ------------------------------------------ ##
9714## Report this to bug-autoconf@gnu.org. ## 10751## Report this to the AC_PACKAGE_NAME lists. ##
9715## ------------------------------------ ## 10752## ------------------------------------------ ##
9716_ASBOX 10753_ASBOX
9717 ) | 10754 ) |
9718 sed "s/^/$as_me: WARNING: /" >&2 10755 sed "s/^/$as_me: WARNING: /" >&2
@@ -9738,7 +10775,6 @@ else
9738 ac_check_lib_save_LIBS=$LIBS 10775 ac_check_lib_save_LIBS=$LIBS
9739LIBS="-lXpm -lX11 $LIBS" 10776LIBS="-lXpm -lX11 $LIBS"
9740cat >conftest.$ac_ext <<_ACEOF 10777cat >conftest.$ac_ext <<_ACEOF
9741#line $LINENO "configure"
9742/* confdefs.h. */ 10778/* confdefs.h. */
9743_ACEOF 10779_ACEOF
9744cat confdefs.h >>conftest.$ac_ext 10780cat confdefs.h >>conftest.$ac_ext
@@ -9762,11 +10798,21 @@ XpmReadFileToPixmap ();
9762_ACEOF 10798_ACEOF
9763rm -f conftest.$ac_objext conftest$ac_exeext 10799rm -f conftest.$ac_objext conftest$ac_exeext
9764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>&5 10801 (eval $ac_link) 2>conftest.er1
9766 ac_status=$? 10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && 10807 (exit $ac_status); } &&
9769 { ac_try='test -s conftest$ac_exeext' 10808 { ac_try='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5 10817 (eval $ac_try) 2>&5
9772 ac_status=$? 10818 ac_status=$?
@@ -9779,7 +10825,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
9779 10825
9780ac_cv_lib_Xpm_XpmReadFileToPixmap=no 10826ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9781fi 10827fi
9782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10828rm -f conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
9783LIBS=$ac_check_lib_save_LIBS 10830LIBS=$ac_check_lib_save_LIBS
9784fi 10831fi
9785echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 10832echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
@@ -9795,7 +10842,6 @@ fi
9795 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 10842 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9796echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 10843echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF 10844 cat >conftest.$ac_ext <<_ACEOF
9798#line $LINENO "configure"
9799/* confdefs.h. */ 10845/* confdefs.h. */
9800_ACEOF 10846_ACEOF
9801cat confdefs.h >>conftest.$ac_ext 10847cat confdefs.h >>conftest.$ac_ext
@@ -9852,7 +10898,6 @@ else
9852echo "$as_me:$LINENO: checking jerror.h usability" >&5 10898echo "$as_me:$LINENO: checking jerror.h usability" >&5
9853echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6 10899echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9854cat >conftest.$ac_ext <<_ACEOF 10900cat >conftest.$ac_ext <<_ACEOF
9855#line $LINENO "configure"
9856/* confdefs.h. */ 10901/* confdefs.h. */
9857_ACEOF 10902_ACEOF
9858cat confdefs.h >>conftest.$ac_ext 10903cat confdefs.h >>conftest.$ac_ext
@@ -9863,11 +10908,21 @@ $ac_includes_default
9863_ACEOF 10908_ACEOF
9864rm -f conftest.$ac_objext 10909rm -f conftest.$ac_objext
9865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>&5 10911 (eval $ac_compile) 2>conftest.er1
9867 ac_status=$? 10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && 10917 (exit $ac_status); } &&
9870 { ac_try='test -s conftest.$ac_objext' 10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5 10927 (eval $ac_try) 2>&5
9873 ac_status=$? 10928 ac_status=$?
@@ -9880,7 +10935,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
9880 10935
9881ac_header_compiler=no 10936ac_header_compiler=no
9882fi 10937fi
9883rm -f conftest.$ac_objext conftest.$ac_ext 10938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9885echo "${ECHO_T}$ac_header_compiler" >&6 10940echo "${ECHO_T}$ac_header_compiler" >&6
9886 10941
@@ -9888,7 +10943,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
9888echo "$as_me:$LINENO: checking jerror.h presence" >&5 10943echo "$as_me:$LINENO: checking jerror.h presence" >&5
9889echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6 10944echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9890cat >conftest.$ac_ext <<_ACEOF 10945cat >conftest.$ac_ext <<_ACEOF
9891#line $LINENO "configure"
9892/* confdefs.h. */ 10946/* confdefs.h. */
9893_ACEOF 10947_ACEOF
9894cat confdefs.h >>conftest.$ac_ext 10948cat confdefs.h >>conftest.$ac_ext
@@ -9906,6 +10960,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9906 (exit $ac_status); } >/dev/null; then 10960 (exit $ac_status); } >/dev/null; then
9907 if test -s conftest.err; then 10961 if test -s conftest.err; then
9908 ac_cpp_err=$ac_c_preproc_warn_flag 10962 ac_cpp_err=$ac_c_preproc_warn_flag
10963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9909 else 10964 else
9910 ac_cpp_err= 10965 ac_cpp_err=
9911 fi 10966 fi
@@ -9925,33 +10980,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925echo "${ECHO_T}$ac_header_preproc" >&6 10980echo "${ECHO_T}$ac_header_preproc" >&6
9926 10981
9927# So? What about this header? 10982# So? What about this header?
9928case $ac_header_compiler:$ac_header_preproc in 10983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9929 yes:no ) 10984 yes:no: )
9930 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 10985 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9931echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10986echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 10987 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
9933echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} 10988echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
9934 ( 10989 ac_header_preproc=yes
9935 cat <<\_ASBOX
9936## ------------------------------------ ##
9937## Report this to bug-autoconf@gnu.org. ##
9938## ------------------------------------ ##
9939_ASBOX
9940 ) |
9941 sed "s/^/$as_me: WARNING: /" >&2
9942 ;; 10990 ;;
9943 no:yes ) 10991 no:yes:* )
9944 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 10992 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9945echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} 10993echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 10994 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9947echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} 10995echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
10997echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
10999echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 11000 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9949echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} 11001echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11003echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
9950 ( 11004 (
9951 cat <<\_ASBOX 11005 cat <<\_ASBOX
9952## ------------------------------------ ## 11006## ------------------------------------------ ##
9953## Report this to bug-autoconf@gnu.org. ## 11007## Report this to the AC_PACKAGE_NAME lists. ##
9954## ------------------------------------ ## 11008## ------------------------------------------ ##
9955_ASBOX 11009_ASBOX
9956 ) | 11010 ) |
9957 sed "s/^/$as_me: WARNING: /" >&2 11011 sed "s/^/$as_me: WARNING: /" >&2
@@ -9977,7 +11031,6 @@ else
9977 ac_check_lib_save_LIBS=$LIBS 11031 ac_check_lib_save_LIBS=$LIBS
9978LIBS="-ljpeg $LIBS" 11032LIBS="-ljpeg $LIBS"
9979cat >conftest.$ac_ext <<_ACEOF 11033cat >conftest.$ac_ext <<_ACEOF
9980#line $LINENO "configure"
9981/* confdefs.h. */ 11034/* confdefs.h. */
9982_ACEOF 11035_ACEOF
9983cat confdefs.h >>conftest.$ac_ext 11036cat confdefs.h >>conftest.$ac_ext
@@ -10001,11 +11054,21 @@ jpeg_destroy_compress ();
10001_ACEOF 11054_ACEOF
10002rm -f conftest.$ac_objext conftest$ac_exeext 11055rm -f conftest.$ac_objext conftest$ac_exeext
10003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5 11057 (eval $ac_link) 2>conftest.er1
10005 ac_status=$? 11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && 11063 (exit $ac_status); } &&
10008 { ac_try='test -s conftest$ac_exeext' 11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5 11073 (eval $ac_try) 2>&5
10011 ac_status=$? 11074 ac_status=$?
@@ -10018,7 +11081,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
10018 11081
10019ac_cv_lib_jpeg_jpeg_destroy_compress=no 11082ac_cv_lib_jpeg_jpeg_destroy_compress=no
10020fi 11083fi
10021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11084rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
10022LIBS=$ac_check_lib_save_LIBS 11086LIBS=$ac_check_lib_save_LIBS
10023fi 11087fi
10024echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 11088echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
@@ -10039,7 +11103,6 @@ fi
10039_ACEOF 11103_ACEOF
10040 11104
10041 cat >conftest.$ac_ext <<_ACEOF 11105 cat >conftest.$ac_ext <<_ACEOF
10042#line $LINENO "configure"
10043/* confdefs.h. */ 11106/* confdefs.h. */
10044_ACEOF 11107_ACEOF
10045cat confdefs.h >>conftest.$ac_ext 11108cat confdefs.h >>conftest.$ac_ext
@@ -10089,7 +11152,6 @@ else
10089echo "$as_me:$LINENO: checking $ac_header usability" >&5 11152echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10091cat >conftest.$ac_ext <<_ACEOF 11154cat >conftest.$ac_ext <<_ACEOF
10092#line $LINENO "configure"
10093/* confdefs.h. */ 11155/* confdefs.h. */
10094_ACEOF 11156_ACEOF
10095cat confdefs.h >>conftest.$ac_ext 11157cat confdefs.h >>conftest.$ac_ext
@@ -10100,11 +11162,21 @@ $ac_includes_default
10100_ACEOF 11162_ACEOF
10101rm -f conftest.$ac_objext 11163rm -f conftest.$ac_objext
10102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5 11165 (eval $ac_compile) 2>conftest.er1
10104 ac_status=$? 11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && 11171 (exit $ac_status); } &&
10107 { ac_try='test -s conftest.$ac_objext' 11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5 11181 (eval $ac_try) 2>&5
10110 ac_status=$? 11182 ac_status=$?
@@ -10117,7 +11189,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
10117 11189
10118ac_header_compiler=no 11190ac_header_compiler=no
10119fi 11191fi
10120rm -f conftest.$ac_objext conftest.$ac_ext 11192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122echo "${ECHO_T}$ac_header_compiler" >&6 11194echo "${ECHO_T}$ac_header_compiler" >&6
10123 11195
@@ -10125,7 +11197,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
10125echo "$as_me:$LINENO: checking $ac_header presence" >&5 11197echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10127cat >conftest.$ac_ext <<_ACEOF 11199cat >conftest.$ac_ext <<_ACEOF
10128#line $LINENO "configure"
10129/* confdefs.h. */ 11200/* confdefs.h. */
10130_ACEOF 11201_ACEOF
10131cat confdefs.h >>conftest.$ac_ext 11202cat confdefs.h >>conftest.$ac_ext
@@ -10143,6 +11214,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10143 (exit $ac_status); } >/dev/null; then 11214 (exit $ac_status); } >/dev/null; then
10144 if test -s conftest.err; then 11215 if test -s conftest.err; then
10145 ac_cpp_err=$ac_c_preproc_warn_flag 11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10146 else 11218 else
10147 ac_cpp_err= 11219 ac_cpp_err=
10148 fi 11220 fi
@@ -10162,33 +11234,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162echo "${ECHO_T}$ac_header_preproc" >&6 11234echo "${ECHO_T}$ac_header_preproc" >&6
10163 11235
10164# So? What about this header? 11236# So? What about this header?
10165case $ac_header_compiler:$ac_header_preproc in 11237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10166 yes:no ) 11238 yes:no: )
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10171 ( 11243 ac_header_preproc=yes
10172 cat <<\_ASBOX
10173## ------------------------------------ ##
10174## Report this to bug-autoconf@gnu.org. ##
10175## ------------------------------------ ##
10176_ASBOX
10177 ) |
10178 sed "s/^/$as_me: WARNING: /" >&2
10179 ;; 11244 ;;
10180 no:yes ) 11245 no:yes:* )
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11249echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11253echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10186echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10187 ( 11258 (
10188 cat <<\_ASBOX 11259 cat <<\_ASBOX
10189## ------------------------------------ ## 11260## ------------------------------------------ ##
10190## Report this to bug-autoconf@gnu.org. ## 11261## Report this to the AC_PACKAGE_NAME lists. ##
10191## ------------------------------------ ## 11262## ------------------------------------------ ##
10192_ASBOX 11263_ASBOX
10193 ) | 11264 ) |
10194 sed "s/^/$as_me: WARNING: /" >&2 11265 sed "s/^/$as_me: WARNING: /" >&2
@@ -10199,7 +11270,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10199if eval "test \"\${$as_ac_Header+set}\" = set"; then 11270if eval "test \"\${$as_ac_Header+set}\" = set"; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6 11271 echo $ECHO_N "(cached) $ECHO_C" >&6
10201else 11272else
10202 eval "$as_ac_Header=$ac_header_preproc" 11273 eval "$as_ac_Header=\$ac_header_preproc"
10203fi 11274fi
10204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -10223,7 +11294,6 @@ else
10223 ac_check_lib_save_LIBS=$LIBS 11294 ac_check_lib_save_LIBS=$LIBS
10224LIBS="-lpng -lz -lm $LIBS" 11295LIBS="-lpng -lz -lm $LIBS"
10225cat >conftest.$ac_ext <<_ACEOF 11296cat >conftest.$ac_ext <<_ACEOF
10226#line $LINENO "configure"
10227/* confdefs.h. */ 11297/* confdefs.h. */
10228_ACEOF 11298_ACEOF
10229cat confdefs.h >>conftest.$ac_ext 11299cat confdefs.h >>conftest.$ac_ext
@@ -10247,11 +11317,21 @@ png_get_channels ();
10247_ACEOF 11317_ACEOF
10248rm -f conftest.$ac_objext conftest$ac_exeext 11318rm -f conftest.$ac_objext conftest$ac_exeext
10249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5 11320 (eval $ac_link) 2>conftest.er1
10251 ac_status=$? 11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && 11326 (exit $ac_status); } &&
10254 { ac_try='test -s conftest$ac_exeext' 11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5 11336 (eval $ac_try) 2>&5
10257 ac_status=$? 11337 ac_status=$?
@@ -10264,7 +11344,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
10264 11344
10265ac_cv_lib_png_png_get_channels=no 11345ac_cv_lib_png_png_get_channels=no
10266fi 11346fi
10267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11347rm -f conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
10268LIBS=$ac_check_lib_save_LIBS 11349LIBS=$ac_check_lib_save_LIBS
10269fi 11350fi
10270echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 11351echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
@@ -10302,7 +11383,6 @@ else
10302echo "$as_me:$LINENO: checking tiffio.h usability" >&5 11383echo "$as_me:$LINENO: checking tiffio.h usability" >&5
10303echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 11384echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
10304cat >conftest.$ac_ext <<_ACEOF 11385cat >conftest.$ac_ext <<_ACEOF
10305#line $LINENO "configure"
10306/* confdefs.h. */ 11386/* confdefs.h. */
10307_ACEOF 11387_ACEOF
10308cat confdefs.h >>conftest.$ac_ext 11388cat confdefs.h >>conftest.$ac_ext
@@ -10313,11 +11393,21 @@ $ac_includes_default
10313_ACEOF 11393_ACEOF
10314rm -f conftest.$ac_objext 11394rm -f conftest.$ac_objext
10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>&5 11396 (eval $ac_compile) 2>conftest.er1
10317 ac_status=$? 11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && 11402 (exit $ac_status); } &&
10320 { ac_try='test -s conftest.$ac_objext' 11403 { ac_try='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest.$ac_objext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5 11412 (eval $ac_try) 2>&5
10323 ac_status=$? 11413 ac_status=$?
@@ -10330,7 +11420,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
10330 11420
10331ac_header_compiler=no 11421ac_header_compiler=no
10332fi 11422fi
10333rm -f conftest.$ac_objext conftest.$ac_ext 11423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11424echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335echo "${ECHO_T}$ac_header_compiler" >&6 11425echo "${ECHO_T}$ac_header_compiler" >&6
10336 11426
@@ -10338,7 +11428,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
10338echo "$as_me:$LINENO: checking tiffio.h presence" >&5 11428echo "$as_me:$LINENO: checking tiffio.h presence" >&5
10339echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 11429echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
10340cat >conftest.$ac_ext <<_ACEOF 11430cat >conftest.$ac_ext <<_ACEOF
10341#line $LINENO "configure"
10342/* confdefs.h. */ 11431/* confdefs.h. */
10343_ACEOF 11432_ACEOF
10344cat confdefs.h >>conftest.$ac_ext 11433cat confdefs.h >>conftest.$ac_ext
@@ -10356,6 +11445,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10356 (exit $ac_status); } >/dev/null; then 11445 (exit $ac_status); } >/dev/null; then
10357 if test -s conftest.err; then 11446 if test -s conftest.err; then
10358 ac_cpp_err=$ac_c_preproc_warn_flag 11447 ac_cpp_err=$ac_c_preproc_warn_flag
11448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10359 else 11449 else
10360 ac_cpp_err= 11450 ac_cpp_err=
10361 fi 11451 fi
@@ -10375,33 +11465,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10375echo "${ECHO_T}$ac_header_preproc" >&6 11465echo "${ECHO_T}$ac_header_preproc" >&6
10376 11466
10377# So? What about this header? 11467# So? What about this header?
10378case $ac_header_compiler:$ac_header_preproc in 11468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10379 yes:no ) 11469 yes:no: )
10380 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 11470 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
10381echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11471echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 11472 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
10383echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} 11473echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
10384 ( 11474 ac_header_preproc=yes
10385 cat <<\_ASBOX
10386## ------------------------------------ ##
10387## Report this to bug-autoconf@gnu.org. ##
10388## ------------------------------------ ##
10389_ASBOX
10390 ) |
10391 sed "s/^/$as_me: WARNING: /" >&2
10392 ;; 11475 ;;
10393 no:yes ) 11476 no:yes:* )
10394 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 11477 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
10395echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} 11478echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 11479 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
10397echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} 11480echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11482echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11484echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 11485 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
10399echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} 11486echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11488echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
10400 ( 11489 (
10401 cat <<\_ASBOX 11490 cat <<\_ASBOX
10402## ------------------------------------ ## 11491## ------------------------------------------ ##
10403## Report this to bug-autoconf@gnu.org. ## 11492## Report this to the AC_PACKAGE_NAME lists. ##
10404## ------------------------------------ ## 11493## ------------------------------------------ ##
10405_ASBOX 11494_ASBOX
10406 ) | 11495 ) |
10407 sed "s/^/$as_me: WARNING: /" >&2 11496 sed "s/^/$as_me: WARNING: /" >&2
@@ -10430,7 +11519,6 @@ else
10430 ac_check_lib_save_LIBS=$LIBS 11519 ac_check_lib_save_LIBS=$LIBS
10431LIBS="-ltiff $tifflibs $LIBS" 11520LIBS="-ltiff $tifflibs $LIBS"
10432cat >conftest.$ac_ext <<_ACEOF 11521cat >conftest.$ac_ext <<_ACEOF
10433#line $LINENO "configure"
10434/* confdefs.h. */ 11522/* confdefs.h. */
10435_ACEOF 11523_ACEOF
10436cat confdefs.h >>conftest.$ac_ext 11524cat confdefs.h >>conftest.$ac_ext
@@ -10454,11 +11542,21 @@ TIFFGetVersion ();
10454_ACEOF 11542_ACEOF
10455rm -f conftest.$ac_objext conftest$ac_exeext 11543rm -f conftest.$ac_objext conftest$ac_exeext
10456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457 (eval $ac_link) 2>&5 11545 (eval $ac_link) 2>conftest.er1
10458 ac_status=$? 11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && 11551 (exit $ac_status); } &&
10461 { ac_try='test -s conftest$ac_exeext' 11552 { ac_try='test -z "$ac_c_werror_flag"
11553 || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5 11561 (eval $ac_try) 2>&5
10464 ac_status=$? 11562 ac_status=$?
@@ -10471,7 +11569,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
10471 11569
10472ac_cv_lib_tiff_TIFFGetVersion=no 11570ac_cv_lib_tiff_TIFFGetVersion=no
10473fi 11571fi
10474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11572rm -f conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
10475LIBS=$ac_check_lib_save_LIBS 11574LIBS=$ac_check_lib_save_LIBS
10476fi 11575fi
10477echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 11576echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
@@ -10511,7 +11610,6 @@ else
10511echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 11610echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
10512echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6 11611echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
10513cat >conftest.$ac_ext <<_ACEOF 11612cat >conftest.$ac_ext <<_ACEOF
10514#line $LINENO "configure"
10515/* confdefs.h. */ 11613/* confdefs.h. */
10516_ACEOF 11614_ACEOF
10517cat confdefs.h >>conftest.$ac_ext 11615cat confdefs.h >>conftest.$ac_ext
@@ -10522,11 +11620,21 @@ $ac_includes_default
10522_ACEOF 11620_ACEOF
10523rm -f conftest.$ac_objext 11621rm -f conftest.$ac_objext
10524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525 (eval $ac_compile) 2>&5 11623 (eval $ac_compile) 2>conftest.er1
10526 ac_status=$? 11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && 11629 (exit $ac_status); } &&
10529 { ac_try='test -s conftest.$ac_objext' 11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5 11639 (eval $ac_try) 2>&5
10532 ac_status=$? 11640 ac_status=$?
@@ -10539,7 +11647,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
10539 11647
10540ac_header_compiler=no 11648ac_header_compiler=no
10541fi 11649fi
10542rm -f conftest.$ac_objext conftest.$ac_ext 11650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11651echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544echo "${ECHO_T}$ac_header_compiler" >&6 11652echo "${ECHO_T}$ac_header_compiler" >&6
10545 11653
@@ -10547,7 +11655,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
10547echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 11655echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10548echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6 11656echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10549cat >conftest.$ac_ext <<_ACEOF 11657cat >conftest.$ac_ext <<_ACEOF
10550#line $LINENO "configure"
10551/* confdefs.h. */ 11658/* confdefs.h. */
10552_ACEOF 11659_ACEOF
10553cat confdefs.h >>conftest.$ac_ext 11660cat confdefs.h >>conftest.$ac_ext
@@ -10565,6 +11672,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10565 (exit $ac_status); } >/dev/null; then 11672 (exit $ac_status); } >/dev/null; then
10566 if test -s conftest.err; then 11673 if test -s conftest.err; then
10567 ac_cpp_err=$ac_c_preproc_warn_flag 11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10568 else 11676 else
10569 ac_cpp_err= 11677 ac_cpp_err=
10570 fi 11678 fi
@@ -10584,33 +11692,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10584echo "${ECHO_T}$ac_header_preproc" >&6 11692echo "${ECHO_T}$ac_header_preproc" >&6
10585 11693
10586# So? What about this header? 11694# So? What about this header?
10587case $ac_header_compiler:$ac_header_preproc in 11695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10588 yes:no ) 11696 yes:no: )
10589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 11697 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10590echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11698echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 11699 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
10592echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} 11700echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
10593 ( 11701 ac_header_preproc=yes
10594 cat <<\_ASBOX
10595## ------------------------------------ ##
10596## Report this to bug-autoconf@gnu.org. ##
10597## ------------------------------------ ##
10598_ASBOX
10599 ) |
10600 sed "s/^/$as_me: WARNING: /" >&2
10601 ;; 11702 ;;
10602 no:yes ) 11703 no:yes:* )
10603 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 11704 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10604echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} 11705echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 11706 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10606echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} 11707echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11709echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11711echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 11712 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10608echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} 11713echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11715echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
10609 ( 11716 (
10610 cat <<\_ASBOX 11717 cat <<\_ASBOX
10611## ------------------------------------ ## 11718## ------------------------------------------ ##
10612## Report this to bug-autoconf@gnu.org. ## 11719## Report this to the AC_PACKAGE_NAME lists. ##
10613## ------------------------------------ ## 11720## ------------------------------------------ ##
10614_ASBOX 11721_ASBOX
10615 ) | 11722 ) |
10616 sed "s/^/$as_me: WARNING: /" >&2 11723 sed "s/^/$as_me: WARNING: /" >&2
@@ -10638,7 +11745,6 @@ else
10638 ac_check_lib_save_LIBS=$LIBS 11745 ac_check_lib_save_LIBS=$LIBS
10639LIBS="-lungif $LIBS" 11746LIBS="-lungif $LIBS"
10640cat >conftest.$ac_ext <<_ACEOF 11747cat >conftest.$ac_ext <<_ACEOF
10641#line $LINENO "configure"
10642/* confdefs.h. */ 11748/* confdefs.h. */
10643_ACEOF 11749_ACEOF
10644cat confdefs.h >>conftest.$ac_ext 11750cat confdefs.h >>conftest.$ac_ext
@@ -10662,11 +11768,21 @@ EGifPutExtensionLast ();
10662_ACEOF 11768_ACEOF
10663rm -f conftest.$ac_objext conftest$ac_exeext 11769rm -f conftest.$ac_objext conftest$ac_exeext
10664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665 (eval $ac_link) 2>&5 11771 (eval $ac_link) 2>conftest.er1
10666 ac_status=$? 11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && 11777 (exit $ac_status); } &&
10669 { ac_try='test -s conftest$ac_exeext' 11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5 11787 (eval $ac_try) 2>&5
10672 ac_status=$? 11788 ac_status=$?
@@ -10679,7 +11795,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
10679 11795
10680ac_cv_lib_ungif_EGifPutExtensionLast=no 11796ac_cv_lib_ungif_EGifPutExtensionLast=no
10681fi 11797fi
10682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11798rm -f conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
10683LIBS=$ac_check_lib_save_LIBS 11800LIBS=$ac_check_lib_save_LIBS
10684fi 11801fi
10685echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 11802echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
@@ -10718,7 +11835,6 @@ else
10718echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 11835echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10719echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 11836echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
10720cat >conftest.$ac_ext <<_ACEOF 11837cat >conftest.$ac_ext <<_ACEOF
10721#line $LINENO "configure"
10722/* confdefs.h. */ 11838/* confdefs.h. */
10723_ACEOF 11839_ACEOF
10724cat confdefs.h >>conftest.$ac_ext 11840cat confdefs.h >>conftest.$ac_ext
@@ -10729,11 +11845,21 @@ $ac_includes_default
10729_ACEOF 11845_ACEOF
10730rm -f conftest.$ac_objext 11846rm -f conftest.$ac_objext
10731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732 (eval $ac_compile) 2>&5 11848 (eval $ac_compile) 2>conftest.er1
10733 ac_status=$? 11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && 11854 (exit $ac_status); } &&
10736 { ac_try='test -s conftest.$ac_objext' 11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5 11864 (eval $ac_try) 2>&5
10739 ac_status=$? 11865 ac_status=$?
@@ -10746,7 +11872,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
10746 11872
10747ac_header_compiler=no 11873ac_header_compiler=no
10748fi 11874fi
10749rm -f conftest.$ac_objext conftest.$ac_ext 11875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751echo "${ECHO_T}$ac_header_compiler" >&6 11877echo "${ECHO_T}$ac_header_compiler" >&6
10752 11878
@@ -10754,7 +11880,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
10754echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 11880echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10755echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 11881echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
10756cat >conftest.$ac_ext <<_ACEOF 11882cat >conftest.$ac_ext <<_ACEOF
10757#line $LINENO "configure"
10758/* confdefs.h. */ 11883/* confdefs.h. */
10759_ACEOF 11884_ACEOF
10760cat confdefs.h >>conftest.$ac_ext 11885cat confdefs.h >>conftest.$ac_ext
@@ -10772,6 +11897,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10772 (exit $ac_status); } >/dev/null; then 11897 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then 11898 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag 11899 ac_cpp_err=$ac_c_preproc_warn_flag
11900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10775 else 11901 else
10776 ac_cpp_err= 11902 ac_cpp_err=
10777 fi 11903 fi
@@ -10791,33 +11917,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10791echo "${ECHO_T}$ac_header_preproc" >&6 11917echo "${ECHO_T}$ac_header_preproc" >&6
10792 11918
10793# So? What about this header? 11919# So? What about this header?
10794case $ac_header_compiler:$ac_header_preproc in 11920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10795 yes:no ) 11921 yes:no: )
10796 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 11922 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10797echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11923echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 11924 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10799echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} 11925echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10800 ( 11926 ac_header_preproc=yes
10801 cat <<\_ASBOX
10802## ------------------------------------ ##
10803## Report this to bug-autoconf@gnu.org. ##
10804## ------------------------------------ ##
10805_ASBOX
10806 ) |
10807 sed "s/^/$as_me: WARNING: /" >&2
10808 ;; 11927 ;;
10809 no:yes ) 11928 no:yes:* )
10810 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 11929 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10811echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} 11930echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 11931 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10813echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} 11932echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11934echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11936echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 11937 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10815echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} 11938echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11940echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10816 ( 11941 (
10817 cat <<\_ASBOX 11942 cat <<\_ASBOX
10818## ------------------------------------ ## 11943## ------------------------------------------ ##
10819## Report this to bug-autoconf@gnu.org. ## 11944## Report this to the AC_PACKAGE_NAME lists. ##
10820## ------------------------------------ ## 11945## ------------------------------------------ ##
10821_ASBOX 11946_ASBOX
10822 ) | 11947 ) |
10823 sed "s/^/$as_me: WARNING: /" >&2 11948 sed "s/^/$as_me: WARNING: /" >&2
@@ -10876,7 +12001,6 @@ else
10876echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 12001echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
10877echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6 12002echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
10878cat >conftest.$ac_ext <<_ACEOF 12003cat >conftest.$ac_ext <<_ACEOF
10879#line $LINENO "configure"
10880/* confdefs.h. */ 12004/* confdefs.h. */
10881_ACEOF 12005_ACEOF
10882cat confdefs.h >>conftest.$ac_ext 12006cat confdefs.h >>conftest.$ac_ext
@@ -10887,11 +12011,21 @@ $ac_includes_default
10887_ACEOF 12011_ACEOF
10888rm -f conftest.$ac_objext 12012rm -f conftest.$ac_objext
10889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5 12014 (eval $ac_compile) 2>conftest.er1
10891 ac_status=$? 12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } && 12020 (exit $ac_status); } &&
10894 { ac_try='test -s conftest.$ac_objext' 12021 { ac_try='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5 12030 (eval $ac_try) 2>&5
10897 ac_status=$? 12031 ac_status=$?
@@ -10904,7 +12038,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
10904 12038
10905ac_header_compiler=no 12039ac_header_compiler=no
10906fi 12040fi
10907rm -f conftest.$ac_objext conftest.$ac_ext 12041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10908echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12042echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909echo "${ECHO_T}$ac_header_compiler" >&6 12043echo "${ECHO_T}$ac_header_compiler" >&6
10910 12044
@@ -10912,7 +12046,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
10912echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 12046echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
10913echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6 12047echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
10914cat >conftest.$ac_ext <<_ACEOF 12048cat >conftest.$ac_ext <<_ACEOF
10915#line $LINENO "configure"
10916/* confdefs.h. */ 12049/* confdefs.h. */
10917_ACEOF 12050_ACEOF
10918cat confdefs.h >>conftest.$ac_ext 12051cat confdefs.h >>conftest.$ac_ext
@@ -10930,6 +12063,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10930 (exit $ac_status); } >/dev/null; then 12063 (exit $ac_status); } >/dev/null; then
10931 if test -s conftest.err; then 12064 if test -s conftest.err; then
10932 ac_cpp_err=$ac_c_preproc_warn_flag 12065 ac_cpp_err=$ac_c_preproc_warn_flag
12066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10933 else 12067 else
10934 ac_cpp_err= 12068 ac_cpp_err=
10935 fi 12069 fi
@@ -10949,33 +12083,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10949echo "${ECHO_T}$ac_header_preproc" >&6 12083echo "${ECHO_T}$ac_header_preproc" >&6
10950 12084
10951# So? What about this header? 12085# So? What about this header?
10952case $ac_header_compiler:$ac_header_preproc in 12086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10953 yes:no ) 12087 yes:no: )
10954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 12088 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10955echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12089echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 12090 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
10957echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} 12091echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
10958 ( 12092 ac_header_preproc=yes
10959 cat <<\_ASBOX
10960## ------------------------------------ ##
10961## Report this to bug-autoconf@gnu.org. ##
10962## ------------------------------------ ##
10963_ASBOX
10964 ) |
10965 sed "s/^/$as_me: WARNING: /" >&2
10966 ;; 12093 ;;
10967 no:yes ) 12094 no:yes:* )
10968 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 12095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
10969echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} 12096echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 12097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
10971echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} 12098echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12100echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12102echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 12103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
10973echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} 12104echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12106echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
10974 ( 12107 (
10975 cat <<\_ASBOX 12108 cat <<\_ASBOX
10976## ------------------------------------ ## 12109## ------------------------------------------ ##
10977## Report this to bug-autoconf@gnu.org. ## 12110## Report this to the AC_PACKAGE_NAME lists. ##
10978## ------------------------------------ ## 12111## ------------------------------------------ ##
10979_ASBOX 12112_ASBOX
10980 ) | 12113 ) |
10981 sed "s/^/$as_me: WARNING: /" >&2 12114 sed "s/^/$as_me: WARNING: /" >&2
@@ -11001,7 +12134,6 @@ else
11001 ac_check_lib_save_LIBS=$LIBS 12134 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-lSM -lICE $LIBS" 12135LIBS="-lSM -lICE $LIBS"
11003cat >conftest.$ac_ext <<_ACEOF 12136cat >conftest.$ac_ext <<_ACEOF
11004#line $LINENO "configure"
11005/* confdefs.h. */ 12137/* confdefs.h. */
11006_ACEOF 12138_ACEOF
11007cat confdefs.h >>conftest.$ac_ext 12139cat confdefs.h >>conftest.$ac_ext
@@ -11025,11 +12157,21 @@ SmcOpenConnection ();
11025_ACEOF 12157_ACEOF
11026rm -f conftest.$ac_objext conftest$ac_exeext 12158rm -f conftest.$ac_objext conftest$ac_exeext
11027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028 (eval $ac_link) 2>&5 12160 (eval $ac_link) 2>conftest.er1
11029 ac_status=$? 12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } && 12166 (exit $ac_status); } &&
11032 { ac_try='test -s conftest$ac_exeext' 12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5 12176 (eval $ac_try) 2>&5
11035 ac_status=$? 12177 ac_status=$?
@@ -11042,7 +12184,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11042 12184
11043ac_cv_lib_SM_SmcOpenConnection=no 12185ac_cv_lib_SM_SmcOpenConnection=no
11044fi 12186fi
11045rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12187rm -f conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
11046LIBS=$ac_check_lib_save_LIBS 12189LIBS=$ac_check_lib_save_LIBS
11047fi 12190fi
11048echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 12191echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
@@ -11075,7 +12218,6 @@ if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6 12218 echo $ECHO_N "(cached) $ECHO_C" >&6
11076else 12219else
11077 cat >conftest.$ac_ext <<_ACEOF 12220 cat >conftest.$ac_ext <<_ACEOF
11078#line $LINENO "configure"
11079/* confdefs.h. */ 12221/* confdefs.h. */
11080_ACEOF 12222_ACEOF
11081cat confdefs.h >>conftest.$ac_ext 12223cat confdefs.h >>conftest.$ac_ext
@@ -11092,11 +12234,21 @@ return h_errno;
11092_ACEOF 12234_ACEOF
11093rm -f conftest.$ac_objext conftest$ac_exeext 12235rm -f conftest.$ac_objext conftest$ac_exeext
11094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>&5 12237 (eval $ac_link) 2>conftest.er1
11096 ac_status=$? 12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && 12243 (exit $ac_status); } &&
11099 { ac_try='test -s conftest$ac_exeext' 12244 { ac_try='test -z "$ac_c_werror_flag"
12245 || test ! -s conftest.err'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try='test -s conftest$ac_exeext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5 12253 (eval $ac_try) 2>&5
11102 ac_status=$? 12254 ac_status=$?
@@ -11109,7 +12261,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11109 12261
11110emacs_cv_netdb_declares_h_errno=no 12262emacs_cv_netdb_declares_h_errno=no
11111fi 12263fi
11112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12264rm -f conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
11113fi 12266fi
11114echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 12267echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11115echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 12268echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
@@ -11129,7 +12282,6 @@ if test "${ac_cv_working_alloca_h+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6 12282 echo $ECHO_N "(cached) $ECHO_C" >&6
11130else 12283else
11131 cat >conftest.$ac_ext <<_ACEOF 12284 cat >conftest.$ac_ext <<_ACEOF
11132#line $LINENO "configure"
11133/* confdefs.h. */ 12285/* confdefs.h. */
11134_ACEOF 12286_ACEOF
11135cat confdefs.h >>conftest.$ac_ext 12287cat confdefs.h >>conftest.$ac_ext
@@ -11146,11 +12298,21 @@ char *p = (char *) alloca (2 * sizeof (int));
11146_ACEOF 12298_ACEOF
11147rm -f conftest.$ac_objext conftest$ac_exeext 12299rm -f conftest.$ac_objext conftest$ac_exeext
11148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>&5 12301 (eval $ac_link) 2>conftest.er1
11150 ac_status=$? 12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && 12307 (exit $ac_status); } &&
11153 { ac_try='test -s conftest$ac_exeext' 12308 { ac_try='test -z "$ac_c_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5 12317 (eval $ac_try) 2>&5
11156 ac_status=$? 12318 ac_status=$?
@@ -11163,7 +12325,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11163 12325
11164ac_cv_working_alloca_h=no 12326ac_cv_working_alloca_h=no
11165fi 12327fi
11166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12328rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
11167fi 12330fi
11168echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 12331echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11169echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 12332echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
@@ -11181,7 +12344,6 @@ if test "${ac_cv_func_alloca_works+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6 12344 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else 12345else
11183 cat >conftest.$ac_ext <<_ACEOF 12346 cat >conftest.$ac_ext <<_ACEOF
11184#line $LINENO "configure"
11185/* confdefs.h. */ 12347/* confdefs.h. */
11186_ACEOF 12348_ACEOF
11187cat confdefs.h >>conftest.$ac_ext 12349cat confdefs.h >>conftest.$ac_ext
@@ -11218,11 +12380,21 @@ char *p = (char *) alloca (1);
11218_ACEOF 12380_ACEOF
11219rm -f conftest.$ac_objext conftest$ac_exeext 12381rm -f conftest.$ac_objext conftest$ac_exeext
11220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>&5 12383 (eval $ac_link) 2>conftest.er1
11222 ac_status=$? 12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } && 12389 (exit $ac_status); } &&
11225 { ac_try='test -s conftest$ac_exeext' 12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227 (eval $ac_try) 2>&5 12399 (eval $ac_try) 2>&5
11228 ac_status=$? 12400 ac_status=$?
@@ -11235,7 +12407,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11235 12407
11236ac_cv_func_alloca_works=no 12408ac_cv_func_alloca_works=no
11237fi 12409fi
11238rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12410rm -f conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
11239fi 12412fi
11240echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 12413echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11241echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 12414echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
@@ -11265,7 +12438,6 @@ if test "${ac_cv_os_cray+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6 12438 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else 12439else
11267 cat >conftest.$ac_ext <<_ACEOF 12440 cat >conftest.$ac_ext <<_ACEOF
11268#line $LINENO "configure"
11269/* confdefs.h. */ 12441/* confdefs.h. */
11270_ACEOF 12442_ACEOF
11271cat confdefs.h >>conftest.$ac_ext 12443cat confdefs.h >>conftest.$ac_ext
@@ -11298,21 +12470,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6 12470 echo $ECHO_N "(cached) $ECHO_C" >&6
11299else 12471else
11300 cat >conftest.$ac_ext <<_ACEOF 12472 cat >conftest.$ac_ext <<_ACEOF
11301#line $LINENO "configure"
11302/* confdefs.h. */ 12473/* confdefs.h. */
11303_ACEOF 12474_ACEOF
11304cat confdefs.h >>conftest.$ac_ext 12475cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF 12476cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */ 12477/* end confdefs.h. */
12478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480#define $ac_func innocuous_$ac_func
12481
11307/* System header to define __stub macros and hopefully few prototypes, 12482/* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below. 12483 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */ 12485 <limits.h> exists even on freestanding compilers. */
12486
11311#ifdef __STDC__ 12487#ifdef __STDC__
11312# include <limits.h> 12488# include <limits.h>
11313#else 12489#else
11314# include <assert.h> 12490# include <assert.h>
11315#endif 12491#endif
12492
12493#undef $ac_func
12494
11316/* Override any gcc2 internal prototype to avoid an error. */ 12495/* Override any gcc2 internal prototype to avoid an error. */
11317#ifdef __cplusplus 12496#ifdef __cplusplus
11318extern "C" 12497extern "C"
@@ -11343,11 +12522,21 @@ return f != $ac_func;
11343_ACEOF 12522_ACEOF
11344rm -f conftest.$ac_objext conftest$ac_exeext 12523rm -f conftest.$ac_objext conftest$ac_exeext
11345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5 12525 (eval $ac_link) 2>conftest.er1
11347 ac_status=$? 12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && 12531 (exit $ac_status); } &&
11350 { ac_try='test -s conftest$ac_exeext' 12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5 12541 (eval $ac_try) 2>&5
11353 ac_status=$? 12542 ac_status=$?
@@ -11360,7 +12549,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11360 12549
11361eval "$as_ac_var=no" 12550eval "$as_ac_var=no"
11362fi 12551fi
11363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12552rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
11364fi 12554fi
11365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -11385,7 +12575,6 @@ else
11385 ac_cv_c_stack_direction=0 12575 ac_cv_c_stack_direction=0
11386else 12576else
11387 cat >conftest.$ac_ext <<_ACEOF 12577 cat >conftest.$ac_ext <<_ACEOF
11388#line $LINENO "configure"
11389/* confdefs.h. */ 12578/* confdefs.h. */
11390_ACEOF 12579_ACEOF
11391cat confdefs.h >>conftest.$ac_ext 12580cat confdefs.h >>conftest.$ac_ext
@@ -11431,7 +12620,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
11431( exit $ac_status ) 12620( exit $ac_status )
11432ac_cv_c_stack_direction=-1 12621ac_cv_c_stack_direction=-1
11433fi 12622fi
11434rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12623rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11435fi 12624fi
11436fi 12625fi
11437echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 12626echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
@@ -11456,7 +12645,6 @@ else
11456 ac_check_lib_save_LIBS=$LIBS 12645 ac_check_lib_save_LIBS=$LIBS
11457LIBS="-lm $LIBS" 12646LIBS="-lm $LIBS"
11458cat >conftest.$ac_ext <<_ACEOF 12647cat >conftest.$ac_ext <<_ACEOF
11459#line $LINENO "configure"
11460/* confdefs.h. */ 12648/* confdefs.h. */
11461_ACEOF 12649_ACEOF
11462cat confdefs.h >>conftest.$ac_ext 12650cat confdefs.h >>conftest.$ac_ext
@@ -11480,11 +12668,21 @@ sqrt ();
11480_ACEOF 12668_ACEOF
11481rm -f conftest.$ac_objext conftest$ac_exeext 12669rm -f conftest.$ac_objext conftest$ac_exeext
11482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5 12671 (eval $ac_link) 2>conftest.er1
11484 ac_status=$? 12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } && 12677 (exit $ac_status); } &&
11487 { ac_try='test -s conftest$ac_exeext' 12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5 12687 (eval $ac_try) 2>&5
11490 ac_status=$? 12688 ac_status=$?
@@ -11497,7 +12695,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11497 12695
11498ac_cv_lib_m_sqrt=no 12696ac_cv_lib_m_sqrt=no
11499fi 12697fi
11500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12698rm -f conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
11501LIBS=$ac_check_lib_save_LIBS 12700LIBS=$ac_check_lib_save_LIBS
11502fi 12701fi
11503echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 12702echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
@@ -11523,7 +12722,6 @@ else
11523 ac_check_lib_save_LIBS=$LIBS 12722 ac_check_lib_save_LIBS=$LIBS
11524LIBS="-lmail $LIBS" 12723LIBS="-lmail $LIBS"
11525cat >conftest.$ac_ext <<_ACEOF 12724cat >conftest.$ac_ext <<_ACEOF
11526#line $LINENO "configure"
11527/* confdefs.h. */ 12725/* confdefs.h. */
11528_ACEOF 12726_ACEOF
11529cat confdefs.h >>conftest.$ac_ext 12727cat confdefs.h >>conftest.$ac_ext
@@ -11547,11 +12745,21 @@ maillock ();
11547_ACEOF 12745_ACEOF
11548rm -f conftest.$ac_objext conftest$ac_exeext 12746rm -f conftest.$ac_objext conftest$ac_exeext
11549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>&5 12748 (eval $ac_link) 2>conftest.er1
11551 ac_status=$? 12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && 12754 (exit $ac_status); } &&
11554 { ac_try='test -s conftest$ac_exeext' 12755 { ac_try='test -z "$ac_c_werror_flag"
12756 || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5 12764 (eval $ac_try) 2>&5
11557 ac_status=$? 12765 ac_status=$?
@@ -11564,7 +12772,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11564 12772
11565ac_cv_lib_mail_maillock=no 12773ac_cv_lib_mail_maillock=no
11566fi 12774fi
11567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12775rm -f conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
11568LIBS=$ac_check_lib_save_LIBS 12777LIBS=$ac_check_lib_save_LIBS
11569fi 12778fi
11570echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 12779echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
@@ -11587,7 +12796,6 @@ else
11587 ac_check_lib_save_LIBS=$LIBS 12796 ac_check_lib_save_LIBS=$LIBS
11588LIBS="-llockfile $LIBS" 12797LIBS="-llockfile $LIBS"
11589cat >conftest.$ac_ext <<_ACEOF 12798cat >conftest.$ac_ext <<_ACEOF
11590#line $LINENO "configure"
11591/* confdefs.h. */ 12799/* confdefs.h. */
11592_ACEOF 12800_ACEOF
11593cat confdefs.h >>conftest.$ac_ext 12801cat confdefs.h >>conftest.$ac_ext
@@ -11611,11 +12819,21 @@ maillock ();
11611_ACEOF 12819_ACEOF
11612rm -f conftest.$ac_objext conftest$ac_exeext 12820rm -f conftest.$ac_objext conftest$ac_exeext
11613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5 12822 (eval $ac_link) 2>conftest.er1
11615 ac_status=$? 12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && 12828 (exit $ac_status); } &&
11618 { ac_try='test -s conftest$ac_exeext' 12829 { ac_try='test -z "$ac_c_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5 12838 (eval $ac_try) 2>&5
11621 ac_status=$? 12839 ac_status=$?
@@ -11628,7 +12846,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11628 12846
11629ac_cv_lib_lockfile_maillock=no 12847ac_cv_lib_lockfile_maillock=no
11630fi 12848fi
11631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12849rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
11632LIBS=$ac_check_lib_save_LIBS 12851LIBS=$ac_check_lib_save_LIBS
11633fi 12852fi
11634echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 12853echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
@@ -11704,21 +12923,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6 12923 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else 12924else
11706 cat >conftest.$ac_ext <<_ACEOF 12925 cat >conftest.$ac_ext <<_ACEOF
11707#line $LINENO "configure"
11708/* confdefs.h. */ 12926/* confdefs.h. */
11709_ACEOF 12927_ACEOF
11710cat confdefs.h >>conftest.$ac_ext 12928cat confdefs.h >>conftest.$ac_ext
11711cat >>conftest.$ac_ext <<_ACEOF 12929cat >>conftest.$ac_ext <<_ACEOF
11712/* end confdefs.h. */ 12930/* end confdefs.h. */
12931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933#define $ac_func innocuous_$ac_func
12934
11713/* System header to define __stub macros and hopefully few prototypes, 12935/* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below. 12936 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */ 12938 <limits.h> exists even on freestanding compilers. */
12939
11717#ifdef __STDC__ 12940#ifdef __STDC__
11718# include <limits.h> 12941# include <limits.h>
11719#else 12942#else
11720# include <assert.h> 12943# include <assert.h>
11721#endif 12944#endif
12945
12946#undef $ac_func
12947
11722/* Override any gcc2 internal prototype to avoid an error. */ 12948/* Override any gcc2 internal prototype to avoid an error. */
11723#ifdef __cplusplus 12949#ifdef __cplusplus
11724extern "C" 12950extern "C"
@@ -11749,11 +12975,21 @@ return f != $ac_func;
11749_ACEOF 12975_ACEOF
11750rm -f conftest.$ac_objext conftest$ac_exeext 12976rm -f conftest.$ac_objext conftest$ac_exeext
11751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5 12978 (eval $ac_link) 2>conftest.er1
11753 ac_status=$? 12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } && 12984 (exit $ac_status); } &&
11756 { ac_try='test -s conftest$ac_exeext' 12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5 12994 (eval $ac_try) 2>&5
11759 ac_status=$? 12995 ac_status=$?
@@ -11766,7 +13002,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
11766 13002
11767eval "$as_ac_var=no" 13003eval "$as_ac_var=no"
11768fi 13004fi
11769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13005rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
11770fi 13007fi
11771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -11795,7 +13032,6 @@ else
11795echo "$as_me:$LINENO: checking $ac_header usability" >&5 13032echo "$as_me:$LINENO: checking $ac_header usability" >&5
11796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11797cat >conftest.$ac_ext <<_ACEOF 13034cat >conftest.$ac_ext <<_ACEOF
11798#line $LINENO "configure"
11799/* confdefs.h. */ 13035/* confdefs.h. */
11800_ACEOF 13036_ACEOF
11801cat confdefs.h >>conftest.$ac_ext 13037cat confdefs.h >>conftest.$ac_ext
@@ -11806,11 +13042,21 @@ $ac_includes_default
11806_ACEOF 13042_ACEOF
11807rm -f conftest.$ac_objext 13043rm -f conftest.$ac_objext
11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>&5 13045 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$? 13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && 13051 (exit $ac_status); } &&
11813 { ac_try='test -s conftest.$ac_objext' 13052 { ac_try='test -z "$ac_c_werror_flag"
13053 || test ! -s conftest.err'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5 13061 (eval $ac_try) 2>&5
11816 ac_status=$? 13062 ac_status=$?
@@ -11823,7 +13069,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
11823 13069
11824ac_header_compiler=no 13070ac_header_compiler=no
11825fi 13071fi
11826rm -f conftest.$ac_objext conftest.$ac_ext 13072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11828echo "${ECHO_T}$ac_header_compiler" >&6 13074echo "${ECHO_T}$ac_header_compiler" >&6
11829 13075
@@ -11831,7 +13077,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
11831echo "$as_me:$LINENO: checking $ac_header presence" >&5 13077echo "$as_me:$LINENO: checking $ac_header presence" >&5
11832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11833cat >conftest.$ac_ext <<_ACEOF 13079cat >conftest.$ac_ext <<_ACEOF
11834#line $LINENO "configure"
11835/* confdefs.h. */ 13080/* confdefs.h. */
11836_ACEOF 13081_ACEOF
11837cat confdefs.h >>conftest.$ac_ext 13082cat confdefs.h >>conftest.$ac_ext
@@ -11849,6 +13094,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11849 (exit $ac_status); } >/dev/null; then 13094 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then 13095 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag 13096 ac_cpp_err=$ac_c_preproc_warn_flag
13097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11852 else 13098 else
11853 ac_cpp_err= 13099 ac_cpp_err=
11854 fi 13100 fi
@@ -11868,33 +13114,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11868echo "${ECHO_T}$ac_header_preproc" >&6 13114echo "${ECHO_T}$ac_header_preproc" >&6
11869 13115
11870# So? What about this header? 13116# So? What about this header?
11871case $ac_header_compiler:$ac_header_preproc in 13117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11872 yes:no ) 13118 yes:no: )
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11877 ( 13123 ac_header_preproc=yes
11878 cat <<\_ASBOX
11879## ------------------------------------ ##
11880## Report this to bug-autoconf@gnu.org. ##
11881## ------------------------------------ ##
11882_ASBOX
11883 ) |
11884 sed "s/^/$as_me: WARNING: /" >&2
11885 ;; 13124 ;;
11886 no:yes ) 13125 no:yes:* )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11893 ( 13138 (
11894 cat <<\_ASBOX 13139 cat <<\_ASBOX
11895## ------------------------------------ ## 13140## ------------------------------------------ ##
11896## Report this to bug-autoconf@gnu.org. ## 13141## Report this to the AC_PACKAGE_NAME lists. ##
11897## ------------------------------------ ## 13142## ------------------------------------------ ##
11898_ASBOX 13143_ASBOX
11899 ) | 13144 ) |
11900 sed "s/^/$as_me: WARNING: /" >&2 13145 sed "s/^/$as_me: WARNING: /" >&2
@@ -11905,7 +13150,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11905if eval "test \"\${$as_ac_Header+set}\" = set"; then 13150if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6 13151 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else 13152else
11908 eval "$as_ac_Header=$ac_header_preproc" 13153 eval "$as_ac_Header=\$ac_header_preproc"
11909fi 13154fi
11910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -12005,21 +13250,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6 13250 echo $ECHO_N "(cached) $ECHO_C" >&6
12006else 13251else
12007 cat >conftest.$ac_ext <<_ACEOF 13252 cat >conftest.$ac_ext <<_ACEOF
12008#line $LINENO "configure"
12009/* confdefs.h. */ 13253/* confdefs.h. */
12010_ACEOF 13254_ACEOF
12011cat confdefs.h >>conftest.$ac_ext 13255cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF 13256cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */ 13257/* end confdefs.h. */
13258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13260#define $ac_func innocuous_$ac_func
13261
12014/* System header to define __stub macros and hopefully few prototypes, 13262/* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below. 13263 which can conflict with char $ac_func (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */ 13265 <limits.h> exists even on freestanding compilers. */
13266
12018#ifdef __STDC__ 13267#ifdef __STDC__
12019# include <limits.h> 13268# include <limits.h>
12020#else 13269#else
12021# include <assert.h> 13270# include <assert.h>
12022#endif 13271#endif
13272
13273#undef $ac_func
13274
12023/* Override any gcc2 internal prototype to avoid an error. */ 13275/* Override any gcc2 internal prototype to avoid an error. */
12024#ifdef __cplusplus 13276#ifdef __cplusplus
12025extern "C" 13277extern "C"
@@ -12050,11 +13302,21 @@ return f != $ac_func;
12050_ACEOF 13302_ACEOF
12051rm -f conftest.$ac_objext conftest$ac_exeext 13303rm -f conftest.$ac_objext conftest$ac_exeext
12052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>&5 13305 (eval $ac_link) 2>conftest.er1
12054 ac_status=$? 13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && 13311 (exit $ac_status); } &&
12057 { ac_try='test -s conftest$ac_exeext' 13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5 13321 (eval $ac_try) 2>&5
12060 ac_status=$? 13322 ac_status=$?
@@ -12067,7 +13329,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
12067 13329
12068eval "$as_ac_var=no" 13330eval "$as_ac_var=no"
12069fi 13331fi
12070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13332rm -f conftest.err conftest.$ac_objext \
13333 conftest$ac_exeext conftest.$ac_ext
12071fi 13334fi
12072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12073echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13336echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -12097,7 +13360,6 @@ else
12097echo "$as_me:$LINENO: checking $ac_header usability" >&5 13360echo "$as_me:$LINENO: checking $ac_header usability" >&5
12098echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12099cat >conftest.$ac_ext <<_ACEOF 13362cat >conftest.$ac_ext <<_ACEOF
12100#line $LINENO "configure"
12101/* confdefs.h. */ 13363/* confdefs.h. */
12102_ACEOF 13364_ACEOF
12103cat confdefs.h >>conftest.$ac_ext 13365cat confdefs.h >>conftest.$ac_ext
@@ -12108,11 +13370,21 @@ $ac_includes_default
12108_ACEOF 13370_ACEOF
12109rm -f conftest.$ac_objext 13371rm -f conftest.$ac_objext
12110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>&5 13373 (eval $ac_compile) 2>conftest.er1
12112 ac_status=$? 13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } && 13379 (exit $ac_status); } &&
12115 { ac_try='test -s conftest.$ac_objext' 13380 { ac_try='test -z "$ac_c_werror_flag"
13381 || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5 13389 (eval $ac_try) 2>&5
12118 ac_status=$? 13390 ac_status=$?
@@ -12125,7 +13397,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
12125 13397
12126ac_header_compiler=no 13398ac_header_compiler=no
12127fi 13399fi
12128rm -f conftest.$ac_objext conftest.$ac_ext 13400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130echo "${ECHO_T}$ac_header_compiler" >&6 13402echo "${ECHO_T}$ac_header_compiler" >&6
12131 13403
@@ -12133,7 +13405,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
12133echo "$as_me:$LINENO: checking $ac_header presence" >&5 13405echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12135cat >conftest.$ac_ext <<_ACEOF 13407cat >conftest.$ac_ext <<_ACEOF
12136#line $LINENO "configure"
12137/* confdefs.h. */ 13408/* confdefs.h. */
12138_ACEOF 13409_ACEOF
12139cat confdefs.h >>conftest.$ac_ext 13410cat confdefs.h >>conftest.$ac_ext
@@ -12151,6 +13422,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12151 (exit $ac_status); } >/dev/null; then 13422 (exit $ac_status); } >/dev/null; then
12152 if test -s conftest.err; then 13423 if test -s conftest.err; then
12153 ac_cpp_err=$ac_c_preproc_warn_flag 13424 ac_cpp_err=$ac_c_preproc_warn_flag
13425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154 else 13426 else
12155 ac_cpp_err= 13427 ac_cpp_err=
12156 fi 13428 fi
@@ -12170,33 +13442,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12170echo "${ECHO_T}$ac_header_preproc" >&6 13442echo "${ECHO_T}$ac_header_preproc" >&6
12171 13443
12172# So? What about this header? 13444# So? What about this header?
12173case $ac_header_compiler:$ac_header_preproc in 13445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12174 yes:no ) 13446 yes:no: )
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12179 ( 13451 ac_header_preproc=yes
12180 cat <<\_ASBOX
12181## ------------------------------------ ##
12182## Report this to bug-autoconf@gnu.org. ##
12183## ------------------------------------ ##
12184_ASBOX
12185 ) |
12186 sed "s/^/$as_me: WARNING: /" >&2
12187 ;; 13452 ;;
12188 no:yes ) 13453 no:yes:* )
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12195 ( 13466 (
12196 cat <<\_ASBOX 13467 cat <<\_ASBOX
12197## ------------------------------------ ## 13468## ------------------------------------------ ##
12198## Report this to bug-autoconf@gnu.org. ## 13469## Report this to the AC_PACKAGE_NAME lists. ##
12199## ------------------------------------ ## 13470## ------------------------------------------ ##
12200_ASBOX 13471_ASBOX
12201 ) | 13472 ) |
12202 sed "s/^/$as_me: WARNING: /" >&2 13473 sed "s/^/$as_me: WARNING: /" >&2
@@ -12207,7 +13478,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12207if eval "test \"\${$as_ac_Header+set}\" = set"; then 13478if eval "test \"\${$as_ac_Header+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6 13479 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else 13480else
12210 eval "$as_ac_Header=$ac_header_preproc" 13481 eval "$as_ac_Header=\$ac_header_preproc"
12211fi 13482fi
12212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -12225,7 +13496,8 @@ done
12225 13496
12226 13497
12227 13498
12228for ac_header in sys/time.h unistd.h 13499
13500for ac_header in stdlib.h sys/time.h unistd.h
12229do 13501do
12230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12231if eval "test \"\${$as_ac_Header+set}\" = set"; then 13503if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -12241,7 +13513,6 @@ else
12241echo "$as_me:$LINENO: checking $ac_header usability" >&5 13513echo "$as_me:$LINENO: checking $ac_header usability" >&5
12242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12243cat >conftest.$ac_ext <<_ACEOF 13515cat >conftest.$ac_ext <<_ACEOF
12244#line $LINENO "configure"
12245/* confdefs.h. */ 13516/* confdefs.h. */
12246_ACEOF 13517_ACEOF
12247cat confdefs.h >>conftest.$ac_ext 13518cat confdefs.h >>conftest.$ac_ext
@@ -12252,11 +13523,21 @@ $ac_includes_default
12252_ACEOF 13523_ACEOF
12253rm -f conftest.$ac_objext 13524rm -f conftest.$ac_objext
12254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>&5 13526 (eval $ac_compile) 2>conftest.er1
12256 ac_status=$? 13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } && 13532 (exit $ac_status); } &&
12259 { ac_try='test -s conftest.$ac_objext' 13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest.$ac_objext'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5 13542 (eval $ac_try) 2>&5
12262 ac_status=$? 13543 ac_status=$?
@@ -12269,7 +13550,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
12269 13550
12270ac_header_compiler=no 13551ac_header_compiler=no
12271fi 13552fi
12272rm -f conftest.$ac_objext conftest.$ac_ext 13553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12273echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12274echo "${ECHO_T}$ac_header_compiler" >&6 13555echo "${ECHO_T}$ac_header_compiler" >&6
12275 13556
@@ -12277,7 +13558,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
12277echo "$as_me:$LINENO: checking $ac_header presence" >&5 13558echo "$as_me:$LINENO: checking $ac_header presence" >&5
12278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12279cat >conftest.$ac_ext <<_ACEOF 13560cat >conftest.$ac_ext <<_ACEOF
12280#line $LINENO "configure"
12281/* confdefs.h. */ 13561/* confdefs.h. */
12282_ACEOF 13562_ACEOF
12283cat confdefs.h >>conftest.$ac_ext 13563cat confdefs.h >>conftest.$ac_ext
@@ -12295,6 +13575,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12295 (exit $ac_status); } >/dev/null; then 13575 (exit $ac_status); } >/dev/null; then
12296 if test -s conftest.err; then 13576 if test -s conftest.err; then
12297 ac_cpp_err=$ac_c_preproc_warn_flag 13577 ac_cpp_err=$ac_c_preproc_warn_flag
13578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12298 else 13579 else
12299 ac_cpp_err= 13580 ac_cpp_err=
12300 fi 13581 fi
@@ -12314,33 +13595,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12314echo "${ECHO_T}$ac_header_preproc" >&6 13595echo "${ECHO_T}$ac_header_preproc" >&6
12315 13596
12316# So? What about this header? 13597# So? What about this header?
12317case $ac_header_compiler:$ac_header_preproc in 13598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12318 yes:no ) 13599 yes:no: )
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12323 ( 13604 ac_header_preproc=yes
12324 cat <<\_ASBOX
12325## ------------------------------------ ##
12326## Report this to bug-autoconf@gnu.org. ##
12327## ------------------------------------ ##
12328_ASBOX
12329 ) |
12330 sed "s/^/$as_me: WARNING: /" >&2
12331 ;; 13605 ;;
12332 no:yes ) 13606 no:yes:* )
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12339 ( 13619 (
12340 cat <<\_ASBOX 13620 cat <<\_ASBOX
12341## ------------------------------------ ## 13621## ------------------------------------------ ##
12342## Report this to bug-autoconf@gnu.org. ## 13622## Report this to the AC_PACKAGE_NAME lists. ##
12343## ------------------------------------ ## 13623## ------------------------------------------ ##
12344_ASBOX 13624_ASBOX
12345 ) | 13625 ) |
12346 sed "s/^/$as_me: WARNING: /" >&2 13626 sed "s/^/$as_me: WARNING: /" >&2
@@ -12351,7 +13631,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12351if eval "test \"\${$as_ac_Header+set}\" = set"; then 13631if eval "test \"\${$as_ac_Header+set}\" = set"; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6 13632 echo $ECHO_N "(cached) $ECHO_C" >&6
12353else 13633else
12354 eval "$as_ac_Header=$ac_header_preproc" 13634 eval "$as_ac_Header=\$ac_header_preproc"
12355fi 13635fi
12356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -12376,21 +13656,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6 13656 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else 13657else
12378 cat >conftest.$ac_ext <<_ACEOF 13658 cat >conftest.$ac_ext <<_ACEOF
12379#line $LINENO "configure"
12380/* confdefs.h. */ 13659/* confdefs.h. */
12381_ACEOF 13660_ACEOF
12382cat confdefs.h >>conftest.$ac_ext 13661cat confdefs.h >>conftest.$ac_ext
12383cat >>conftest.$ac_ext <<_ACEOF 13662cat >>conftest.$ac_ext <<_ACEOF
12384/* end confdefs.h. */ 13663/* end confdefs.h. */
13664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13666#define $ac_func innocuous_$ac_func
13667
12385/* System header to define __stub macros and hopefully few prototypes, 13668/* System header to define __stub macros and hopefully few prototypes,
12386 which can conflict with char $ac_func (); below. 13669 which can conflict with char $ac_func (); below.
12387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12388 <limits.h> exists even on freestanding compilers. */ 13671 <limits.h> exists even on freestanding compilers. */
13672
12389#ifdef __STDC__ 13673#ifdef __STDC__
12390# include <limits.h> 13674# include <limits.h>
12391#else 13675#else
12392# include <assert.h> 13676# include <assert.h>
12393#endif 13677#endif
13678
13679#undef $ac_func
13680
12394/* Override any gcc2 internal prototype to avoid an error. */ 13681/* Override any gcc2 internal prototype to avoid an error. */
12395#ifdef __cplusplus 13682#ifdef __cplusplus
12396extern "C" 13683extern "C"
@@ -12421,11 +13708,21 @@ return f != $ac_func;
12421_ACEOF 13708_ACEOF
12422rm -f conftest.$ac_objext conftest$ac_exeext 13709rm -f conftest.$ac_objext conftest$ac_exeext
12423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424 (eval $ac_link) 2>&5 13711 (eval $ac_link) 2>conftest.er1
12425 ac_status=$? 13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } && 13717 (exit $ac_status); } &&
12428 { ac_try='test -s conftest$ac_exeext' 13718 { ac_try='test -z "$ac_c_werror_flag"
13719 || test ! -s conftest.err'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try='test -s conftest$ac_exeext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5 13727 (eval $ac_try) 2>&5
12431 ac_status=$? 13728 ac_status=$?
@@ -12438,7 +13735,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
12438 13735
12439eval "$as_ac_var=no" 13736eval "$as_ac_var=no"
12440fi 13737fi
12441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13738rm -f conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
12442fi 13740fi
12443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -12459,7 +13757,6 @@ else
12459 ac_cv_func_working_mktime=no 13757 ac_cv_func_working_mktime=no
12460else 13758else
12461 cat >conftest.$ac_ext <<_ACEOF 13759 cat >conftest.$ac_ext <<_ACEOF
12462#line $LINENO "configure"
12463/* confdefs.h. */ 13760/* confdefs.h. */
12464_ACEOF 13761_ACEOF
12465cat confdefs.h >>conftest.$ac_ext 13762cat confdefs.h >>conftest.$ac_ext
@@ -12477,6 +13774,10 @@ cat >>conftest.$ac_ext <<_ACEOF
12477# endif 13774# endif
12478#endif 13775#endif
12479 13776
13777#if HAVE_STDLIB_H
13778# include <stdlib.h>
13779#endif
13780
12480#if HAVE_UNISTD_H 13781#if HAVE_UNISTD_H
12481# include <unistd.h> 13782# include <unistd.h>
12482#endif 13783#endif
@@ -12489,10 +13790,11 @@ cat >>conftest.$ac_ext <<_ACEOF
12489#undef putenv 13790#undef putenv
12490 13791
12491static time_t time_t_max; 13792static time_t time_t_max;
13793static time_t time_t_min;
12492 13794
12493/* Values we'll use to set the TZ environment variable. */ 13795/* Values we'll use to set the TZ environment variable. */
12494static const char *const tz_strings[] = { 13796static char *tz_strings[] = {
12495 (const char *) 0, "TZ=GMT0", "TZ=JST-9", 13797 (char *) 0, "TZ=GMT0", "TZ=JST-9",
12496 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 13798 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12497}; 13799};
12498#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 13800#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
@@ -12523,15 +13825,21 @@ spring_forward_gap ()
12523} 13825}
12524 13826
12525static void 13827static void
12526mktime_test (now) 13828mktime_test1 (now)
12527 time_t now; 13829 time_t now;
12528{ 13830{
12529 struct tm *lt; 13831 struct tm *lt;
12530 if ((lt = localtime (&now)) && mktime (lt) != now) 13832 if ((lt = localtime (&now)) && mktime (lt) != now)
12531 exit (1); 13833 exit (1);
12532 now = time_t_max - now; 13834}
12533 if ((lt = localtime (&now)) && mktime (lt) != now) 13835
12534 exit (1); 13836static void
13837mktime_test (now)
13838 time_t now;
13839{
13840 mktime_test1 (now);
13841 mktime_test1 ((time_t) (time_t_max - now));
13842 mktime_test1 ((time_t) (time_t_min + now));
12535} 13843}
12536 13844
12537static void 13845static void
@@ -12591,6 +13899,9 @@ main ()
12591 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) 13899 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
12592 continue; 13900 continue;
12593 time_t_max--; 13901 time_t_max--;
13902 if ((time_t) -1 < 0)
13903 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13904 continue;
12594 delta = time_t_max / 997; /* a suitable prime number */ 13905 delta = time_t_max / 997; /* a suitable prime number */
12595 for (i = 0; i < N_STRINGS; i++) 13906 for (i = 0; i < N_STRINGS; i++)
12596 { 13907 {
@@ -12599,11 +13910,12 @@ main ()
12599 13910
12600 for (t = 0; t <= time_t_max - delta; t += delta) 13911 for (t = 0; t <= time_t_max - delta; t += delta)
12601 mktime_test (t); 13912 mktime_test (t);
12602 mktime_test ((time_t) 60 * 60); 13913 mktime_test ((time_t) 1);
12603 mktime_test ((time_t) 60 * 60 * 24); 13914 mktime_test ((time_t) (60 * 60));
13915 mktime_test ((time_t) (60 * 60 * 24));
12604 13916
12605 for (j = 1; 0 < j; j *= 2) 13917 for (j = 1; 0 < j; j *= 2)
12606 bigtime_test (j); 13918 bigtime_test (j);
12607 bigtime_test (j - 1); 13919 bigtime_test (j - 1);
12608 } 13920 }
12609 irix_6_4_bug (); 13921 irix_6_4_bug ();
@@ -12631,13 +13943,20 @@ sed 's/^/| /' conftest.$ac_ext >&5
12631( exit $ac_status ) 13943( exit $ac_status )
12632ac_cv_func_working_mktime=no 13944ac_cv_func_working_mktime=no
12633fi 13945fi
12634rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12635fi 13947fi
12636fi 13948fi
12637echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 13949echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
12638echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 13950echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
12639if test $ac_cv_func_working_mktime = no; then 13951if test $ac_cv_func_working_mktime = no; then
12640 LIBOBJS="$LIBOBJS mktime.$ac_objext" 13952 case $LIBOBJS in
13953 "mktime.$ac_objext" | \
13954 *" mktime.$ac_objext" | \
13955 "mktime.$ac_objext "* | \
13956 *" mktime.$ac_objext "* ) ;;
13957 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
13958esac
13959
12641fi 13960fi
12642 13961
12643if test "$ac_cv_func_working_mktime" = no; then 13962if test "$ac_cv_func_working_mktime" = no; then
@@ -12665,21 +13984,28 @@ if test "${ac_cv_func_getloadavg+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6 13984 echo $ECHO_N "(cached) $ECHO_C" >&6
12666else 13985else
12667 cat >conftest.$ac_ext <<_ACEOF 13986 cat >conftest.$ac_ext <<_ACEOF
12668#line $LINENO "configure"
12669/* confdefs.h. */ 13987/* confdefs.h. */
12670_ACEOF 13988_ACEOF
12671cat confdefs.h >>conftest.$ac_ext 13989cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF 13990cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */ 13991/* end confdefs.h. */
13992/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13994#define getloadavg innocuous_getloadavg
13995
12674/* System header to define __stub macros and hopefully few prototypes, 13996/* System header to define __stub macros and hopefully few prototypes,
12675 which can conflict with char getloadavg (); below. 13997 which can conflict with char getloadavg (); below.
12676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12677 <limits.h> exists even on freestanding compilers. */ 13999 <limits.h> exists even on freestanding compilers. */
14000
12678#ifdef __STDC__ 14001#ifdef __STDC__
12679# include <limits.h> 14002# include <limits.h>
12680#else 14003#else
12681# include <assert.h> 14004# include <assert.h>
12682#endif 14005#endif
14006
14007#undef getloadavg
14008
12683/* Override any gcc2 internal prototype to avoid an error. */ 14009/* Override any gcc2 internal prototype to avoid an error. */
12684#ifdef __cplusplus 14010#ifdef __cplusplus
12685extern "C" 14011extern "C"
@@ -12710,11 +14036,21 @@ return f != getloadavg;
12710_ACEOF 14036_ACEOF
12711rm -f conftest.$ac_objext conftest$ac_exeext 14037rm -f conftest.$ac_objext conftest$ac_exeext
12712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713 (eval $ac_link) 2>&5 14039 (eval $ac_link) 2>conftest.er1
12714 ac_status=$? 14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } && 14045 (exit $ac_status); } &&
12717 { ac_try='test -s conftest$ac_exeext' 14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5 14055 (eval $ac_try) 2>&5
12720 ac_status=$? 14056 ac_status=$?
@@ -12727,7 +14063,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
12727 14063
12728ac_cv_func_getloadavg=no 14064ac_cv_func_getloadavg=no
12729fi 14065fi
12730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14066rm -f conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
12731fi 14068fi
12732echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 14069echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
12733echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 14070echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
@@ -12749,21 +14086,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6 14086 echo $ECHO_N "(cached) $ECHO_C" >&6
12750else 14087else
12751 cat >conftest.$ac_ext <<_ACEOF 14088 cat >conftest.$ac_ext <<_ACEOF
12752#line $LINENO "configure"
12753/* confdefs.h. */ 14089/* confdefs.h. */
12754_ACEOF 14090_ACEOF
12755cat confdefs.h >>conftest.$ac_ext 14091cat confdefs.h >>conftest.$ac_ext
12756cat >>conftest.$ac_ext <<_ACEOF 14092cat >>conftest.$ac_ext <<_ACEOF
12757/* end confdefs.h. */ 14093/* end confdefs.h. */
14094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14096#define $ac_func innocuous_$ac_func
14097
12758/* System header to define __stub macros and hopefully few prototypes, 14098/* System header to define __stub macros and hopefully few prototypes,
12759 which can conflict with char $ac_func (); below. 14099 which can conflict with char $ac_func (); below.
12760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12761 <limits.h> exists even on freestanding compilers. */ 14101 <limits.h> exists even on freestanding compilers. */
14102
12762#ifdef __STDC__ 14103#ifdef __STDC__
12763# include <limits.h> 14104# include <limits.h>
12764#else 14105#else
12765# include <assert.h> 14106# include <assert.h>
12766#endif 14107#endif
14108
14109#undef $ac_func
14110
12767/* Override any gcc2 internal prototype to avoid an error. */ 14111/* Override any gcc2 internal prototype to avoid an error. */
12768#ifdef __cplusplus 14112#ifdef __cplusplus
12769extern "C" 14113extern "C"
@@ -12794,11 +14138,21 @@ return f != $ac_func;
12794_ACEOF 14138_ACEOF
12795rm -f conftest.$ac_objext conftest$ac_exeext 14139rm -f conftest.$ac_objext conftest$ac_exeext
12796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5 14141 (eval $ac_link) 2>conftest.er1
12798 ac_status=$? 14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && 14147 (exit $ac_status); } &&
12801 { ac_try='test -s conftest$ac_exeext' 14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5 14157 (eval $ac_try) 2>&5
12804 ac_status=$? 14158 ac_status=$?
@@ -12811,7 +14165,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
12811 14165
12812eval "$as_ac_var=no" 14166eval "$as_ac_var=no"
12813fi 14167fi
12814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14168rm -f conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
12815fi 14170fi
12816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -12834,7 +14189,6 @@ else
12834 ac_check_lib_save_LIBS=$LIBS 14189 ac_check_lib_save_LIBS=$LIBS
12835LIBS="-lkstat $LIBS" 14190LIBS="-lkstat $LIBS"
12836cat >conftest.$ac_ext <<_ACEOF 14191cat >conftest.$ac_ext <<_ACEOF
12837#line $LINENO "configure"
12838/* confdefs.h. */ 14192/* confdefs.h. */
12839_ACEOF 14193_ACEOF
12840cat confdefs.h >>conftest.$ac_ext 14194cat confdefs.h >>conftest.$ac_ext
@@ -12858,11 +14212,21 @@ kstat_open ();
12858_ACEOF 14212_ACEOF
12859rm -f conftest.$ac_objext conftest$ac_exeext 14213rm -f conftest.$ac_objext conftest$ac_exeext
12860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>&5 14215 (eval $ac_link) 2>conftest.er1
12862 ac_status=$? 14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && 14221 (exit $ac_status); } &&
12865 { ac_try='test -s conftest$ac_exeext' 14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5 14231 (eval $ac_try) 2>&5
12868 ac_status=$? 14232 ac_status=$?
@@ -12875,7 +14239,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
12875 14239
12876ac_cv_lib_kstat_kstat_open=no 14240ac_cv_lib_kstat_kstat_open=no
12877fi 14241fi
12878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14242rm -f conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
12879LIBS=$ac_check_lib_save_LIBS 14244LIBS=$ac_check_lib_save_LIBS
12880fi 14245fi
12881echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 14246echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
@@ -12904,7 +14269,6 @@ else
12904 ac_check_lib_save_LIBS=$LIBS 14269 ac_check_lib_save_LIBS=$LIBS
12905LIBS="-lelf $LIBS" 14270LIBS="-lelf $LIBS"
12906cat >conftest.$ac_ext <<_ACEOF 14271cat >conftest.$ac_ext <<_ACEOF
12907#line $LINENO "configure"
12908/* confdefs.h. */ 14272/* confdefs.h. */
12909_ACEOF 14273_ACEOF
12910cat confdefs.h >>conftest.$ac_ext 14274cat confdefs.h >>conftest.$ac_ext
@@ -12928,11 +14292,21 @@ elf_begin ();
12928_ACEOF 14292_ACEOF
12929rm -f conftest.$ac_objext conftest$ac_exeext 14293rm -f conftest.$ac_objext conftest$ac_exeext
12930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931 (eval $ac_link) 2>&5 14295 (eval $ac_link) 2>conftest.er1
12932 ac_status=$? 14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && 14301 (exit $ac_status); } &&
12935 { ac_try='test -s conftest$ac_exeext' 14302 { ac_try='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5 14311 (eval $ac_try) 2>&5
12938 ac_status=$? 14312 ac_status=$?
@@ -12945,7 +14319,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
12945 14319
12946ac_cv_lib_elf_elf_begin=no 14320ac_cv_lib_elf_elf_begin=no
12947fi 14321fi
12948rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14322rm -f conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
12949LIBS=$ac_check_lib_save_LIBS 14324LIBS=$ac_check_lib_save_LIBS
12950fi 14325fi
12951echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 14326echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
@@ -12964,7 +14339,6 @@ else
12964 ac_check_lib_save_LIBS=$LIBS 14339 ac_check_lib_save_LIBS=$LIBS
12965LIBS="-lkvm $LIBS" 14340LIBS="-lkvm $LIBS"
12966cat >conftest.$ac_ext <<_ACEOF 14341cat >conftest.$ac_ext <<_ACEOF
12967#line $LINENO "configure"
12968/* confdefs.h. */ 14342/* confdefs.h. */
12969_ACEOF 14343_ACEOF
12970cat confdefs.h >>conftest.$ac_ext 14344cat confdefs.h >>conftest.$ac_ext
@@ -12988,11 +14362,21 @@ kvm_open ();
12988_ACEOF 14362_ACEOF
12989rm -f conftest.$ac_objext conftest$ac_exeext 14363rm -f conftest.$ac_objext conftest$ac_exeext
12990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5 14365 (eval $ac_link) 2>conftest.er1
12992 ac_status=$? 14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && 14371 (exit $ac_status); } &&
12995 { ac_try='test -s conftest$ac_exeext' 14372 { ac_try='test -z "$ac_c_werror_flag"
14373 || test ! -s conftest.err'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5 14381 (eval $ac_try) 2>&5
12998 ac_status=$? 14382 ac_status=$?
@@ -13005,7 +14389,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
13005 14389
13006ac_cv_lib_kvm_kvm_open=no 14390ac_cv_lib_kvm_kvm_open=no
13007fi 14391fi
13008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14392rm -f conftest.err conftest.$ac_objext \
14393 conftest$ac_exeext conftest.$ac_ext
13009LIBS=$ac_check_lib_save_LIBS 14394LIBS=$ac_check_lib_save_LIBS
13010fi 14395fi
13011echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 14396echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
@@ -13023,7 +14408,6 @@ else
13023 ac_check_lib_save_LIBS=$LIBS 14408 ac_check_lib_save_LIBS=$LIBS
13024LIBS="-lutil $LIBS" 14409LIBS="-lutil $LIBS"
13025cat >conftest.$ac_ext <<_ACEOF 14410cat >conftest.$ac_ext <<_ACEOF
13026#line $LINENO "configure"
13027/* confdefs.h. */ 14411/* confdefs.h. */
13028_ACEOF 14412_ACEOF
13029cat confdefs.h >>conftest.$ac_ext 14413cat confdefs.h >>conftest.$ac_ext
@@ -13047,11 +14431,21 @@ getloadavg ();
13047_ACEOF 14431_ACEOF
13048rm -f conftest.$ac_objext conftest$ac_exeext 14432rm -f conftest.$ac_objext conftest$ac_exeext
13049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>&5 14434 (eval $ac_link) 2>conftest.er1
13051 ac_status=$? 14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } && 14440 (exit $ac_status); } &&
13054 { ac_try='test -s conftest$ac_exeext' 14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest$ac_exeext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5 14450 (eval $ac_try) 2>&5
13057 ac_status=$? 14451 ac_status=$?
@@ -13064,7 +14458,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
13064 14458
13065ac_cv_lib_util_getloadavg=no 14459ac_cv_lib_util_getloadavg=no
13066fi 14460fi
13067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14461rm -f conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
13068LIBS=$ac_check_lib_save_LIBS 14463LIBS=$ac_check_lib_save_LIBS
13069fi 14464fi
13070echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 14465echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
@@ -13088,7 +14483,6 @@ else
13088 ac_check_lib_save_LIBS=$LIBS 14483 ac_check_lib_save_LIBS=$LIBS
13089LIBS="-lgetloadavg $LIBS" 14484LIBS="-lgetloadavg $LIBS"
13090cat >conftest.$ac_ext <<_ACEOF 14485cat >conftest.$ac_ext <<_ACEOF
13091#line $LINENO "configure"
13092/* confdefs.h. */ 14486/* confdefs.h. */
13093_ACEOF 14487_ACEOF
13094cat confdefs.h >>conftest.$ac_ext 14488cat confdefs.h >>conftest.$ac_ext
@@ -13112,11 +14506,21 @@ getloadavg ();
13112_ACEOF 14506_ACEOF
13113rm -f conftest.$ac_objext conftest$ac_exeext 14507rm -f conftest.$ac_objext conftest$ac_exeext
13114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>&5 14509 (eval $ac_link) 2>conftest.er1
13116 ac_status=$? 14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && 14515 (exit $ac_status); } &&
13119 { ac_try='test -s conftest$ac_exeext' 14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
13120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5 14525 (eval $ac_try) 2>&5
13122 ac_status=$? 14526 ac_status=$?
@@ -13129,7 +14533,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
13129 14533
13130ac_cv_lib_getloadavg_getloadavg=no 14534ac_cv_lib_getloadavg_getloadavg=no
13131fi 14535fi
13132rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14536rm -f conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
13133LIBS=$ac_check_lib_save_LIBS 14538LIBS=$ac_check_lib_save_LIBS
13134fi 14539fi
13135echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 14540echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
@@ -13154,21 +14559,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
13154 echo $ECHO_N "(cached) $ECHO_C" >&6 14559 echo $ECHO_N "(cached) $ECHO_C" >&6
13155else 14560else
13156 cat >conftest.$ac_ext <<_ACEOF 14561 cat >conftest.$ac_ext <<_ACEOF
13157#line $LINENO "configure"
13158/* confdefs.h. */ 14562/* confdefs.h. */
13159_ACEOF 14563_ACEOF
13160cat confdefs.h >>conftest.$ac_ext 14564cat confdefs.h >>conftest.$ac_ext
13161cat >>conftest.$ac_ext <<_ACEOF 14565cat >>conftest.$ac_ext <<_ACEOF
13162/* end confdefs.h. */ 14566/* end confdefs.h. */
14567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14569#define $ac_func innocuous_$ac_func
14570
13163/* System header to define __stub macros and hopefully few prototypes, 14571/* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char $ac_func (); below. 14572 which can conflict with char $ac_func (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */ 14574 <limits.h> exists even on freestanding compilers. */
14575
13167#ifdef __STDC__ 14576#ifdef __STDC__
13168# include <limits.h> 14577# include <limits.h>
13169#else 14578#else
13170# include <assert.h> 14579# include <assert.h>
13171#endif 14580#endif
14581
14582#undef $ac_func
14583
13172/* Override any gcc2 internal prototype to avoid an error. */ 14584/* Override any gcc2 internal prototype to avoid an error. */
13173#ifdef __cplusplus 14585#ifdef __cplusplus
13174extern "C" 14586extern "C"
@@ -13199,11 +14611,21 @@ return f != $ac_func;
13199_ACEOF 14611_ACEOF
13200rm -f conftest.$ac_objext conftest$ac_exeext 14612rm -f conftest.$ac_objext conftest$ac_exeext
13201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>&5 14614 (eval $ac_link) 2>conftest.er1
13203 ac_status=$? 14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } && 14620 (exit $ac_status); } &&
13206 { ac_try='test -s conftest$ac_exeext' 14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5 14630 (eval $ac_try) 2>&5
13209 ac_status=$? 14631 ac_status=$?
@@ -13216,7 +14638,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
13216 14638
13217eval "$as_ac_var=no" 14639eval "$as_ac_var=no"
13218fi 14640fi
13219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14641rm -f conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
13220fi 14643fi
13221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -13226,7 +14649,14 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then
13226_ACEOF 14649_ACEOF
13227 14650
13228else 14651else
13229 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 14652 case $LIBOBJS in
14653 "getloadavg.$ac_objext" | \
14654 *" getloadavg.$ac_objext" | \
14655 "getloadavg.$ac_objext "* | \
14656 *" getloadavg.$ac_objext "* ) ;;
14657 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14658esac
14659
13230 14660
13231cat >>confdefs.h <<\_ACEOF 14661cat >>confdefs.h <<\_ACEOF
13232#define C_GETLOADAVG 1 14662#define C_GETLOADAVG 1
@@ -13247,7 +14677,6 @@ else
13247echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 14677echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
13248echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 14678echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
13249cat >conftest.$ac_ext <<_ACEOF 14679cat >conftest.$ac_ext <<_ACEOF
13250#line $LINENO "configure"
13251/* confdefs.h. */ 14680/* confdefs.h. */
13252_ACEOF 14681_ACEOF
13253cat confdefs.h >>conftest.$ac_ext 14682cat confdefs.h >>conftest.$ac_ext
@@ -13258,11 +14687,21 @@ $ac_includes_default
13258_ACEOF 14687_ACEOF
13259rm -f conftest.$ac_objext 14688rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>&5 14690 (eval $ac_compile) 2>conftest.er1
13262 ac_status=$? 14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && 14696 (exit $ac_status); } &&
13265 { ac_try='test -s conftest.$ac_objext' 14697 { ac_try='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5 14706 (eval $ac_try) 2>&5
13268 ac_status=$? 14707 ac_status=$?
@@ -13275,7 +14714,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
13275 14714
13276ac_header_compiler=no 14715ac_header_compiler=no
13277fi 14716fi
13278rm -f conftest.$ac_objext conftest.$ac_ext 14717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280echo "${ECHO_T}$ac_header_compiler" >&6 14719echo "${ECHO_T}$ac_header_compiler" >&6
13281 14720
@@ -13283,7 +14722,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
13283echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 14722echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
13284echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 14723echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
13285cat >conftest.$ac_ext <<_ACEOF 14724cat >conftest.$ac_ext <<_ACEOF
13286#line $LINENO "configure"
13287/* confdefs.h. */ 14725/* confdefs.h. */
13288_ACEOF 14726_ACEOF
13289cat confdefs.h >>conftest.$ac_ext 14727cat confdefs.h >>conftest.$ac_ext
@@ -13301,6 +14739,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13301 (exit $ac_status); } >/dev/null; then 14739 (exit $ac_status); } >/dev/null; then
13302 if test -s conftest.err; then 14740 if test -s conftest.err; then
13303 ac_cpp_err=$ac_c_preproc_warn_flag 14741 ac_cpp_err=$ac_c_preproc_warn_flag
14742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13304 else 14743 else
13305 ac_cpp_err= 14744 ac_cpp_err=
13306 fi 14745 fi
@@ -13320,33 +14759,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13320echo "${ECHO_T}$ac_header_preproc" >&6 14759echo "${ECHO_T}$ac_header_preproc" >&6
13321 14760
13322# So? What about this header? 14761# So? What about this header?
13323case $ac_header_compiler:$ac_header_preproc in 14762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13324 yes:no ) 14763 yes:no: )
13325 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 14764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
13326echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14765echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 14766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
13328echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} 14767echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
13329 ( 14768 ac_header_preproc=yes
13330 cat <<\_ASBOX
13331## ------------------------------------ ##
13332## Report this to bug-autoconf@gnu.org. ##
13333## ------------------------------------ ##
13334_ASBOX
13335 ) |
13336 sed "s/^/$as_me: WARNING: /" >&2
13337 ;; 14769 ;;
13338 no:yes ) 14770 no:yes:* )
13339 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 14771 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
13340echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} 14772echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 14773 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
13342echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} 14774echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14776echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14778echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 14779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
13344echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} 14780echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14782echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
13345 ( 14783 (
13346 cat <<\_ASBOX 14784 cat <<\_ASBOX
13347## ------------------------------------ ## 14785## ------------------------------------------ ##
13348## Report this to bug-autoconf@gnu.org. ## 14786## Report this to the AC_PACKAGE_NAME lists. ##
13349## ------------------------------------ ## 14787## ------------------------------------------ ##
13350_ASBOX 14788_ASBOX
13351 ) | 14789 ) |
13352 sed "s/^/$as_me: WARNING: /" >&2 14790 sed "s/^/$as_me: WARNING: /" >&2
@@ -13379,7 +14817,6 @@ else
13379 ac_check_lib_save_LIBS=$LIBS 14817 ac_check_lib_save_LIBS=$LIBS
13380LIBS="-ldgc $LIBS" 14818LIBS="-ldgc $LIBS"
13381cat >conftest.$ac_ext <<_ACEOF 14819cat >conftest.$ac_ext <<_ACEOF
13382#line $LINENO "configure"
13383/* confdefs.h. */ 14820/* confdefs.h. */
13384_ACEOF 14821_ACEOF
13385cat confdefs.h >>conftest.$ac_ext 14822cat confdefs.h >>conftest.$ac_ext
@@ -13403,11 +14840,21 @@ dg_sys_info ();
13403_ACEOF 14840_ACEOF
13404rm -f conftest.$ac_objext conftest$ac_exeext 14841rm -f conftest.$ac_objext conftest$ac_exeext
13405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5 14843 (eval $ac_link) 2>conftest.er1
13407 ac_status=$? 14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && 14849 (exit $ac_status); } &&
13410 { ac_try='test -s conftest$ac_exeext' 14850 { ac_try='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5 14859 (eval $ac_try) 2>&5
13413 ac_status=$? 14860 ac_status=$?
@@ -13420,7 +14867,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
13420 14867
13421ac_cv_lib_dgc_dg_sys_info=no 14868ac_cv_lib_dgc_dg_sys_info=no
13422fi 14869fi
13423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14870rm -f conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
13424LIBS=$ac_check_lib_save_LIBS 14872LIBS=$ac_check_lib_save_LIBS
13425fi 14873fi
13426echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 14874echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
@@ -13451,7 +14899,6 @@ else
13451echo "$as_me:$LINENO: checking locale.h usability" >&5 14899echo "$as_me:$LINENO: checking locale.h usability" >&5
13452echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 14900echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
13453cat >conftest.$ac_ext <<_ACEOF 14901cat >conftest.$ac_ext <<_ACEOF
13454#line $LINENO "configure"
13455/* confdefs.h. */ 14902/* confdefs.h. */
13456_ACEOF 14903_ACEOF
13457cat confdefs.h >>conftest.$ac_ext 14904cat confdefs.h >>conftest.$ac_ext
@@ -13462,11 +14909,21 @@ $ac_includes_default
13462_ACEOF 14909_ACEOF
13463rm -f conftest.$ac_objext 14910rm -f conftest.$ac_objext
13464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>&5 14912 (eval $ac_compile) 2>conftest.er1
13466 ac_status=$? 14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && 14918 (exit $ac_status); } &&
13469 { ac_try='test -s conftest.$ac_objext' 14919 { ac_try='test -z "$ac_c_werror_flag"
14920 || test ! -s conftest.err'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try='test -s conftest.$ac_objext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5 14928 (eval $ac_try) 2>&5
13472 ac_status=$? 14929 ac_status=$?
@@ -13479,7 +14936,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
13479 14936
13480ac_header_compiler=no 14937ac_header_compiler=no
13481fi 14938fi
13482rm -f conftest.$ac_objext conftest.$ac_ext 14939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14940echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13484echo "${ECHO_T}$ac_header_compiler" >&6 14941echo "${ECHO_T}$ac_header_compiler" >&6
13485 14942
@@ -13487,7 +14944,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
13487echo "$as_me:$LINENO: checking locale.h presence" >&5 14944echo "$as_me:$LINENO: checking locale.h presence" >&5
13488echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 14945echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
13489cat >conftest.$ac_ext <<_ACEOF 14946cat >conftest.$ac_ext <<_ACEOF
13490#line $LINENO "configure"
13491/* confdefs.h. */ 14947/* confdefs.h. */
13492_ACEOF 14948_ACEOF
13493cat confdefs.h >>conftest.$ac_ext 14949cat confdefs.h >>conftest.$ac_ext
@@ -13505,6 +14961,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13505 (exit $ac_status); } >/dev/null; then 14961 (exit $ac_status); } >/dev/null; then
13506 if test -s conftest.err; then 14962 if test -s conftest.err; then
13507 ac_cpp_err=$ac_c_preproc_warn_flag 14963 ac_cpp_err=$ac_c_preproc_warn_flag
14964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13508 else 14965 else
13509 ac_cpp_err= 14966 ac_cpp_err=
13510 fi 14967 fi
@@ -13524,33 +14981,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13524echo "${ECHO_T}$ac_header_preproc" >&6 14981echo "${ECHO_T}$ac_header_preproc" >&6
13525 14982
13526# So? What about this header? 14983# So? What about this header?
13527case $ac_header_compiler:$ac_header_preproc in 14984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13528 yes:no ) 14985 yes:no: )
13529 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 14986 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
13530echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14987echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 14988 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
13532echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} 14989echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
13533 ( 14990 ac_header_preproc=yes
13534 cat <<\_ASBOX
13535## ------------------------------------ ##
13536## Report this to bug-autoconf@gnu.org. ##
13537## ------------------------------------ ##
13538_ASBOX
13539 ) |
13540 sed "s/^/$as_me: WARNING: /" >&2
13541 ;; 14991 ;;
13542 no:yes ) 14992 no:yes:* )
13543 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 14993 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
13544echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} 14994echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 14995 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
13546echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} 14996echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
14998echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
14999 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15000echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 15001 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
13548echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} 15002echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15004echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
13549 ( 15005 (
13550 cat <<\_ASBOX 15006 cat <<\_ASBOX
13551## ------------------------------------ ## 15007## ------------------------------------------ ##
13552## Report this to bug-autoconf@gnu.org. ## 15008## Report this to the AC_PACKAGE_NAME lists. ##
13553## ------------------------------------ ## 15009## ------------------------------------------ ##
13554_ASBOX 15010_ASBOX
13555 ) | 15011 ) |
13556 sed "s/^/$as_me: WARNING: /" >&2 15012 sed "s/^/$as_me: WARNING: /" >&2
@@ -13579,21 +15035,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6 15035 echo $ECHO_N "(cached) $ECHO_C" >&6
13580else 15036else
13581 cat >conftest.$ac_ext <<_ACEOF 15037 cat >conftest.$ac_ext <<_ACEOF
13582#line $LINENO "configure"
13583/* confdefs.h. */ 15038/* confdefs.h. */
13584_ACEOF 15039_ACEOF
13585cat confdefs.h >>conftest.$ac_ext 15040cat confdefs.h >>conftest.$ac_ext
13586cat >>conftest.$ac_ext <<_ACEOF 15041cat >>conftest.$ac_ext <<_ACEOF
13587/* end confdefs.h. */ 15042/* end confdefs.h. */
15043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15045#define $ac_func innocuous_$ac_func
15046
13588/* System header to define __stub macros and hopefully few prototypes, 15047/* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func (); below. 15048 which can conflict with char $ac_func (); below.
13590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591 <limits.h> exists even on freestanding compilers. */ 15050 <limits.h> exists even on freestanding compilers. */
15051
13592#ifdef __STDC__ 15052#ifdef __STDC__
13593# include <limits.h> 15053# include <limits.h>
13594#else 15054#else
13595# include <assert.h> 15055# include <assert.h>
13596#endif 15056#endif
15057
15058#undef $ac_func
15059
13597/* Override any gcc2 internal prototype to avoid an error. */ 15060/* Override any gcc2 internal prototype to avoid an error. */
13598#ifdef __cplusplus 15061#ifdef __cplusplus
13599extern "C" 15062extern "C"
@@ -13624,11 +15087,21 @@ return f != $ac_func;
13624_ACEOF 15087_ACEOF
13625rm -f conftest.$ac_objext conftest$ac_exeext 15088rm -f conftest.$ac_objext conftest$ac_exeext
13626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13627 (eval $ac_link) 2>&5 15090 (eval $ac_link) 2>conftest.er1
13628 ac_status=$? 15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } && 15096 (exit $ac_status); } &&
13631 { ac_try='test -s conftest$ac_exeext' 15097 { ac_try='test -z "$ac_c_werror_flag"
15098 || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest$ac_exeext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5 15106 (eval $ac_try) 2>&5
13634 ac_status=$? 15107 ac_status=$?
@@ -13641,7 +15114,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
13641 15114
13642eval "$as_ac_var=no" 15115eval "$as_ac_var=no"
13643fi 15116fi
13644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15117rm -f conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
13645fi 15119fi
13646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -13680,7 +15154,6 @@ else
13680echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 15154echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
13681echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 15155echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
13682cat >conftest.$ac_ext <<_ACEOF 15156cat >conftest.$ac_ext <<_ACEOF
13683#line $LINENO "configure"
13684/* confdefs.h. */ 15157/* confdefs.h. */
13685_ACEOF 15158_ACEOF
13686cat confdefs.h >>conftest.$ac_ext 15159cat confdefs.h >>conftest.$ac_ext
@@ -13691,11 +15164,21 @@ $ac_includes_default
13691_ACEOF 15164_ACEOF
13692rm -f conftest.$ac_objext 15165rm -f conftest.$ac_objext
13693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>&5 15167 (eval $ac_compile) 2>conftest.er1
13695 ac_status=$? 15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && 15173 (exit $ac_status); } &&
13698 { ac_try='test -s conftest.$ac_objext' 15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5 15183 (eval $ac_try) 2>&5
13701 ac_status=$? 15184 ac_status=$?
@@ -13708,7 +15191,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
13708 15191
13709ac_header_compiler=no 15192ac_header_compiler=no
13710fi 15193fi
13711rm -f conftest.$ac_objext conftest.$ac_ext 15194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13713echo "${ECHO_T}$ac_header_compiler" >&6 15196echo "${ECHO_T}$ac_header_compiler" >&6
13714 15197
@@ -13716,7 +15199,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
13716echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 15199echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
13717echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 15200echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
13718cat >conftest.$ac_ext <<_ACEOF 15201cat >conftest.$ac_ext <<_ACEOF
13719#line $LINENO "configure"
13720/* confdefs.h. */ 15202/* confdefs.h. */
13721_ACEOF 15203_ACEOF
13722cat confdefs.h >>conftest.$ac_ext 15204cat confdefs.h >>conftest.$ac_ext
@@ -13734,6 +15216,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13734 (exit $ac_status); } >/dev/null; then 15216 (exit $ac_status); } >/dev/null; then
13735 if test -s conftest.err; then 15217 if test -s conftest.err; then
13736 ac_cpp_err=$ac_c_preproc_warn_flag 15218 ac_cpp_err=$ac_c_preproc_warn_flag
15219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13737 else 15220 else
13738 ac_cpp_err= 15221 ac_cpp_err=
13739 fi 15222 fi
@@ -13753,33 +15236,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753echo "${ECHO_T}$ac_header_preproc" >&6 15236echo "${ECHO_T}$ac_header_preproc" >&6
13754 15237
13755# So? What about this header? 15238# So? What about this header?
13756case $ac_header_compiler:$ac_header_preproc in 15239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13757 yes:no ) 15240 yes:no: )
13758 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 15241 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13759echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15242echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 15243 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
13761echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} 15244echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
13762 ( 15245 ac_header_preproc=yes
13763 cat <<\_ASBOX
13764## ------------------------------------ ##
13765## Report this to bug-autoconf@gnu.org. ##
13766## ------------------------------------ ##
13767_ASBOX
13768 ) |
13769 sed "s/^/$as_me: WARNING: /" >&2
13770 ;; 15246 ;;
13771 no:yes ) 15247 no:yes:* )
13772 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 15248 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13773echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} 15249echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 15250 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13775echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} 15251echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15253echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15255echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 15256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13777echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} 15257echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15259echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
13778 ( 15260 (
13779 cat <<\_ASBOX 15261 cat <<\_ASBOX
13780## ------------------------------------ ## 15262## ------------------------------------------ ##
13781## Report this to bug-autoconf@gnu.org. ## 15263## Report this to the AC_PACKAGE_NAME lists. ##
13782## ------------------------------------ ## 15264## ------------------------------------------ ##
13783_ASBOX 15265_ASBOX
13784 ) | 15266 ) |
13785 sed "s/^/$as_me: WARNING: /" >&2 15267 sed "s/^/$as_me: WARNING: /" >&2
@@ -13827,7 +15309,6 @@ else
13827echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 15309echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13828echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 15310echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13829cat >conftest.$ac_ext <<_ACEOF 15311cat >conftest.$ac_ext <<_ACEOF
13830#line $LINENO "configure"
13831/* confdefs.h. */ 15312/* confdefs.h. */
13832_ACEOF 15313_ACEOF
13833cat confdefs.h >>conftest.$ac_ext 15314cat confdefs.h >>conftest.$ac_ext
@@ -13838,11 +15319,21 @@ $ac_includes_default
13838_ACEOF 15319_ACEOF
13839rm -f conftest.$ac_objext 15320rm -f conftest.$ac_objext
13840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5 15322 (eval $ac_compile) 2>conftest.er1
13842 ac_status=$? 15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && 15328 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext' 15329 { ac_try='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5 15338 (eval $ac_try) 2>&5
13848 ac_status=$? 15339 ac_status=$?
@@ -13855,7 +15346,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
13855 15346
13856ac_header_compiler=no 15347ac_header_compiler=no
13857fi 15348fi
13858rm -f conftest.$ac_objext conftest.$ac_ext 15349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13860echo "${ECHO_T}$ac_header_compiler" >&6 15351echo "${ECHO_T}$ac_header_compiler" >&6
13861 15352
@@ -13863,7 +15354,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
13863echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 15354echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13864echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 15355echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13865cat >conftest.$ac_ext <<_ACEOF 15356cat >conftest.$ac_ext <<_ACEOF
13866#line $LINENO "configure"
13867/* confdefs.h. */ 15357/* confdefs.h. */
13868_ACEOF 15358_ACEOF
13869cat confdefs.h >>conftest.$ac_ext 15359cat confdefs.h >>conftest.$ac_ext
@@ -13881,6 +15371,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13881 (exit $ac_status); } >/dev/null; then 15371 (exit $ac_status); } >/dev/null; then
13882 if test -s conftest.err; then 15372 if test -s conftest.err; then
13883 ac_cpp_err=$ac_c_preproc_warn_flag 15373 ac_cpp_err=$ac_c_preproc_warn_flag
15374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13884 else 15375 else
13885 ac_cpp_err= 15376 ac_cpp_err=
13886 fi 15377 fi
@@ -13900,33 +15391,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13900echo "${ECHO_T}$ac_header_preproc" >&6 15391echo "${ECHO_T}$ac_header_preproc" >&6
13901 15392
13902# So? What about this header? 15393# So? What about this header?
13903case $ac_header_compiler:$ac_header_preproc in 15394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13904 yes:no ) 15395 yes:no: )
13905 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 15396 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13906echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15397echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 15398 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
13908echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} 15399echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
13909 ( 15400 ac_header_preproc=yes
13910 cat <<\_ASBOX
13911## ------------------------------------ ##
13912## Report this to bug-autoconf@gnu.org. ##
13913## ------------------------------------ ##
13914_ASBOX
13915 ) |
13916 sed "s/^/$as_me: WARNING: /" >&2
13917 ;; 15401 ;;
13918 no:yes ) 15402 no:yes:* )
13919 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 15403 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13920echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} 15404echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 15405 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13922echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} 15406echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15408echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15410echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 15411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13924echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} 15412echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15414echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
13925 ( 15415 (
13926 cat <<\_ASBOX 15416 cat <<\_ASBOX
13927## ------------------------------------ ## 15417## ------------------------------------------ ##
13928## Report this to bug-autoconf@gnu.org. ## 15418## Report this to the AC_PACKAGE_NAME lists. ##
13929## ------------------------------------ ## 15419## ------------------------------------------ ##
13930_ASBOX 15420_ASBOX
13931 ) | 15421 ) |
13932 sed "s/^/$as_me: WARNING: /" >&2 15422 sed "s/^/$as_me: WARNING: /" >&2
@@ -13971,7 +15461,6 @@ else
13971echo "$as_me:$LINENO: checking $ac_header usability" >&5 15461echo "$as_me:$LINENO: checking $ac_header usability" >&5
13972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13973cat >conftest.$ac_ext <<_ACEOF 15463cat >conftest.$ac_ext <<_ACEOF
13974#line $LINENO "configure"
13975/* confdefs.h. */ 15464/* confdefs.h. */
13976_ACEOF 15465_ACEOF
13977cat confdefs.h >>conftest.$ac_ext 15466cat confdefs.h >>conftest.$ac_ext
@@ -13982,11 +15471,21 @@ $ac_includes_default
13982_ACEOF 15471_ACEOF
13983rm -f conftest.$ac_objext 15472rm -f conftest.$ac_objext
13984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>&5 15474 (eval $ac_compile) 2>conftest.er1
13986 ac_status=$? 15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && 15480 (exit $ac_status); } &&
13989 { ac_try='test -s conftest.$ac_objext' 15481 { ac_try='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5 15490 (eval $ac_try) 2>&5
13992 ac_status=$? 15491 ac_status=$?
@@ -13999,7 +15498,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
13999 15498
14000ac_header_compiler=no 15499ac_header_compiler=no
14001fi 15500fi
14002rm -f conftest.$ac_objext conftest.$ac_ext 15501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14004echo "${ECHO_T}$ac_header_compiler" >&6 15503echo "${ECHO_T}$ac_header_compiler" >&6
14005 15504
@@ -14007,7 +15506,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
14007echo "$as_me:$LINENO: checking $ac_header presence" >&5 15506echo "$as_me:$LINENO: checking $ac_header presence" >&5
14008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14009cat >conftest.$ac_ext <<_ACEOF 15508cat >conftest.$ac_ext <<_ACEOF
14010#line $LINENO "configure"
14011/* confdefs.h. */ 15509/* confdefs.h. */
14012_ACEOF 15510_ACEOF
14013cat confdefs.h >>conftest.$ac_ext 15511cat confdefs.h >>conftest.$ac_ext
@@ -14025,6 +15523,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14025 (exit $ac_status); } >/dev/null; then 15523 (exit $ac_status); } >/dev/null; then
14026 if test -s conftest.err; then 15524 if test -s conftest.err; then
14027 ac_cpp_err=$ac_c_preproc_warn_flag 15525 ac_cpp_err=$ac_c_preproc_warn_flag
15526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14028 else 15527 else
14029 ac_cpp_err= 15528 ac_cpp_err=
14030 fi 15529 fi
@@ -14044,33 +15543,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14044echo "${ECHO_T}$ac_header_preproc" >&6 15543echo "${ECHO_T}$ac_header_preproc" >&6
14045 15544
14046# So? What about this header? 15545# So? What about this header?
14047case $ac_header_compiler:$ac_header_preproc in 15546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14048 yes:no ) 15547 yes:no: )
14049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14053 ( 15552 ac_header_preproc=yes
14054 cat <<\_ASBOX
14055## ------------------------------------ ##
14056## Report this to bug-autoconf@gnu.org. ##
14057## ------------------------------------ ##
14058_ASBOX
14059 ) |
14060 sed "s/^/$as_me: WARNING: /" >&2
14061 ;; 15553 ;;
14062 no:yes ) 15554 no:yes:* )
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14069 ( 15567 (
14070 cat <<\_ASBOX 15568 cat <<\_ASBOX
14071## ------------------------------------ ## 15569## ------------------------------------------ ##
14072## Report this to bug-autoconf@gnu.org. ## 15570## Report this to the AC_PACKAGE_NAME lists. ##
14073## ------------------------------------ ## 15571## ------------------------------------------ ##
14074_ASBOX 15572_ASBOX
14075 ) | 15573 ) |
14076 sed "s/^/$as_me: WARNING: /" >&2 15574 sed "s/^/$as_me: WARNING: /" >&2
@@ -14081,7 +15579,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081if eval "test \"\${$as_ac_Header+set}\" = set"; then 15579if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6 15580 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else 15581else
14084 eval "$as_ac_Header=$ac_header_preproc" 15582 eval "$as_ac_Header=\$ac_header_preproc"
14085fi 15583fi
14086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -14115,7 +15613,6 @@ else
14115echo "$as_me:$LINENO: checking $ac_header usability" >&5 15613echo "$as_me:$LINENO: checking $ac_header usability" >&5
14116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14117cat >conftest.$ac_ext <<_ACEOF 15615cat >conftest.$ac_ext <<_ACEOF
14118#line $LINENO "configure"
14119/* confdefs.h. */ 15616/* confdefs.h. */
14120_ACEOF 15617_ACEOF
14121cat confdefs.h >>conftest.$ac_ext 15618cat confdefs.h >>conftest.$ac_ext
@@ -14126,11 +15623,21 @@ $ac_includes_default
14126_ACEOF 15623_ACEOF
14127rm -f conftest.$ac_objext 15624rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5 15626 (eval $ac_compile) 2>conftest.er1
14130 ac_status=$? 15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && 15632 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext' 15633 { ac_try='test -z "$ac_c_werror_flag"
15634 || test ! -s conftest.err'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5 15642 (eval $ac_try) 2>&5
14136 ac_status=$? 15643 ac_status=$?
@@ -14143,7 +15650,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
14143 15650
14144ac_header_compiler=no 15651ac_header_compiler=no
14145fi 15652fi
14146rm -f conftest.$ac_objext conftest.$ac_ext 15653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15654echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14148echo "${ECHO_T}$ac_header_compiler" >&6 15655echo "${ECHO_T}$ac_header_compiler" >&6
14149 15656
@@ -14151,7 +15658,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
14151echo "$as_me:$LINENO: checking $ac_header presence" >&5 15658echo "$as_me:$LINENO: checking $ac_header presence" >&5
14152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15659echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14153cat >conftest.$ac_ext <<_ACEOF 15660cat >conftest.$ac_ext <<_ACEOF
14154#line $LINENO "configure"
14155/* confdefs.h. */ 15661/* confdefs.h. */
14156_ACEOF 15662_ACEOF
14157cat confdefs.h >>conftest.$ac_ext 15663cat confdefs.h >>conftest.$ac_ext
@@ -14169,6 +15675,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14169 (exit $ac_status); } >/dev/null; then 15675 (exit $ac_status); } >/dev/null; then
14170 if test -s conftest.err; then 15676 if test -s conftest.err; then
14171 ac_cpp_err=$ac_c_preproc_warn_flag 15677 ac_cpp_err=$ac_c_preproc_warn_flag
15678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14172 else 15679 else
14173 ac_cpp_err= 15680 ac_cpp_err=
14174 fi 15681 fi
@@ -14188,33 +15695,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14188echo "${ECHO_T}$ac_header_preproc" >&6 15695echo "${ECHO_T}$ac_header_preproc" >&6
14189 15696
14190# So? What about this header? 15697# So? What about this header?
14191case $ac_header_compiler:$ac_header_preproc in 15698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14192 yes:no ) 15699 yes:no: )
14193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14197 ( 15704 ac_header_preproc=yes
14198 cat <<\_ASBOX
14199## ------------------------------------ ##
14200## Report this to bug-autoconf@gnu.org. ##
14201## ------------------------------------ ##
14202_ASBOX
14203 ) |
14204 sed "s/^/$as_me: WARNING: /" >&2
14205 ;; 15705 ;;
14206 no:yes ) 15706 no:yes:* )
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14213 ( 15719 (
14214 cat <<\_ASBOX 15720 cat <<\_ASBOX
14215## ------------------------------------ ## 15721## ------------------------------------------ ##
14216## Report this to bug-autoconf@gnu.org. ## 15722## Report this to the AC_PACKAGE_NAME lists. ##
14217## ------------------------------------ ## 15723## ------------------------------------------ ##
14218_ASBOX 15724_ASBOX
14219 ) | 15725 ) |
14220 sed "s/^/$as_me: WARNING: /" >&2 15726 sed "s/^/$as_me: WARNING: /" >&2
@@ -14225,7 +15731,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14225if eval "test \"\${$as_ac_Header+set}\" = set"; then 15731if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6 15732 echo $ECHO_N "(cached) $ECHO_C" >&6
14227else 15733else
14228 eval "$as_ac_Header=$ac_header_preproc" 15734 eval "$as_ac_Header=\$ac_header_preproc"
14229fi 15735fi
14230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -14241,7 +15747,6 @@ if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6 15747 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else 15748else
14243 cat >conftest.$ac_ext <<_ACEOF 15749 cat >conftest.$ac_ext <<_ACEOF
14244#line $LINENO "configure"
14245/* confdefs.h. */ 15750/* confdefs.h. */
14246_ACEOF 15751_ACEOF
14247cat confdefs.h >>conftest.$ac_ext 15752cat confdefs.h >>conftest.$ac_ext
@@ -14261,11 +15766,21 @@ return 0;
14261_ACEOF 15766_ACEOF
14262rm -f conftest.$ac_objext 15767rm -f conftest.$ac_objext
14263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>&5 15769 (eval $ac_compile) 2>conftest.er1
14265 ac_status=$? 15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && 15775 (exit $ac_status); } &&
14268 { ac_try='test -s conftest.$ac_objext' 15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5 15785 (eval $ac_try) 2>&5
14271 ac_status=$? 15786 ac_status=$?
@@ -14277,7 +15792,6 @@ else
14277sed 's/^/| /' conftest.$ac_ext >&5 15792sed 's/^/| /' conftest.$ac_ext >&5
14278 15793
14279cat >conftest.$ac_ext <<_ACEOF 15794cat >conftest.$ac_ext <<_ACEOF
14280#line $LINENO "configure"
14281/* confdefs.h. */ 15795/* confdefs.h. */
14282_ACEOF 15796_ACEOF
14283cat confdefs.h >>conftest.$ac_ext 15797cat confdefs.h >>conftest.$ac_ext
@@ -14297,11 +15811,21 @@ return 0;
14297_ACEOF 15811_ACEOF
14298rm -f conftest.$ac_objext 15812rm -f conftest.$ac_objext
14299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5 15814 (eval $ac_compile) 2>conftest.er1
14301 ac_status=$? 15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } && 15820 (exit $ac_status); } &&
14304 { ac_try='test -s conftest.$ac_objext' 15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5 15830 (eval $ac_try) 2>&5
14307 ac_status=$? 15831 ac_status=$?
@@ -14314,9 +15838,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
14314 15838
14315ac_cv_member_struct_nlist_n_un_n_name=no 15839ac_cv_member_struct_nlist_n_un_n_name=no
14316fi 15840fi
14317rm -f conftest.$ac_objext conftest.$ac_ext 15841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14318fi 15842fi
14319rm -f conftest.$ac_objext conftest.$ac_ext 15843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14320fi 15844fi
14321echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 15845echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
14322echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 15846echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
@@ -14349,7 +15873,6 @@ if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6 15873 echo $ECHO_N "(cached) $ECHO_C" >&6
14350else 15874else
14351 cat >conftest.$ac_ext <<_ACEOF 15875 cat >conftest.$ac_ext <<_ACEOF
14352#line $LINENO "configure"
14353/* confdefs.h. */ 15876/* confdefs.h. */
14354_ACEOF 15877_ACEOF
14355cat confdefs.h >>conftest.$ac_ext 15878cat confdefs.h >>conftest.$ac_ext
@@ -14393,7 +15916,7 @@ else
14393 # If we got an error (system does not support symlinks), try without -L. 15916 # If we got an error (system does not support symlinks), try without -L.
14394 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` 15917 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
14395 ac_cv_group_kmem=`echo $ac_ls_output \ 15918 ac_cv_group_kmem=`echo $ac_ls_output \
14396 | sed -ne 's/[ ][ ]*/ /g; 15919 | sed -ne 's/[ ][ ]*/ /g;
14397 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 15920 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
14398 / /s/.* //;p;'` 15921 / /s/.* //;p;'`
14399 15922
@@ -14419,7 +15942,6 @@ else
14419 while :; do 15942 while :; do
14420 ac_cv_sys_largefile_source=no 15943 ac_cv_sys_largefile_source=no
14421 cat >conftest.$ac_ext <<_ACEOF 15944 cat >conftest.$ac_ext <<_ACEOF
14422#line $LINENO "configure"
14423/* confdefs.h. */ 15945/* confdefs.h. */
14424_ACEOF 15946_ACEOF
14425cat confdefs.h >>conftest.$ac_ext 15947cat confdefs.h >>conftest.$ac_ext
@@ -14436,11 +15958,21 @@ return !fseeko;
14436_ACEOF 15958_ACEOF
14437rm -f conftest.$ac_objext 15959rm -f conftest.$ac_objext
14438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5 15961 (eval $ac_compile) 2>conftest.er1
14440 ac_status=$? 15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && 15967 (exit $ac_status); } &&
14443 { ac_try='test -s conftest.$ac_objext' 15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5 15977 (eval $ac_try) 2>&5
14446 ac_status=$? 15978 ac_status=$?
@@ -14452,9 +15984,8 @@ else
14452sed 's/^/| /' conftest.$ac_ext >&5 15984sed 's/^/| /' conftest.$ac_ext >&5
14453 15985
14454fi 15986fi
14455rm -f conftest.$ac_objext conftest.$ac_ext 15987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456 cat >conftest.$ac_ext <<_ACEOF 15988 cat >conftest.$ac_ext <<_ACEOF
14457#line $LINENO "configure"
14458/* confdefs.h. */ 15989/* confdefs.h. */
14459_ACEOF 15990_ACEOF
14460cat confdefs.h >>conftest.$ac_ext 15991cat confdefs.h >>conftest.$ac_ext
@@ -14472,11 +16003,21 @@ return !fseeko;
14472_ACEOF 16003_ACEOF
14473rm -f conftest.$ac_objext 16004rm -f conftest.$ac_objext
14474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14475 (eval $ac_compile) 2>&5 16006 (eval $ac_compile) 2>conftest.er1
14476 ac_status=$? 16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } && 16012 (exit $ac_status); } &&
14479 { ac_try='test -s conftest.$ac_objext' 16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5 16022 (eval $ac_try) 2>&5
14482 ac_status=$? 16023 ac_status=$?
@@ -14488,7 +16029,7 @@ else
14488sed 's/^/| /' conftest.$ac_ext >&5 16029sed 's/^/| /' conftest.$ac_ext >&5
14489 16030
14490fi 16031fi
14491rm -f conftest.$ac_objext conftest.$ac_ext 16032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14492 break 16033 break
14493done 16034done
14494fi 16035fi
@@ -14512,7 +16053,6 @@ if test "${ac_cv_func_fseeko+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6 16053 echo $ECHO_N "(cached) $ECHO_C" >&6
14513else 16054else
14514 cat >conftest.$ac_ext <<_ACEOF 16055 cat >conftest.$ac_ext <<_ACEOF
14515#line $LINENO "configure"
14516/* confdefs.h. */ 16056/* confdefs.h. */
14517_ACEOF 16057_ACEOF
14518cat confdefs.h >>conftest.$ac_ext 16058cat confdefs.h >>conftest.$ac_ext
@@ -14529,11 +16069,21 @@ return fseeko && fseeko (stdin, 0, 0);
14529_ACEOF 16069_ACEOF
14530rm -f conftest.$ac_objext conftest$ac_exeext 16070rm -f conftest.$ac_objext conftest$ac_exeext
14531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532 (eval $ac_link) 2>&5 16072 (eval $ac_link) 2>conftest.er1
14533 ac_status=$? 16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } && 16078 (exit $ac_status); } &&
14536 { ac_try='test -s conftest$ac_exeext' 16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5 16088 (eval $ac_try) 2>&5
14539 ac_status=$? 16089 ac_status=$?
@@ -14546,7 +16096,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
14546 16096
14547ac_cv_func_fseeko=no 16097ac_cv_func_fseeko=no
14548fi 16098fi
14549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16099rm -f conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
14550fi 16101fi
14551echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 16102echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
14552echo "${ECHO_T}$ac_cv_func_fseeko" >&6 16103echo "${ECHO_T}$ac_cv_func_fseeko" >&6
@@ -14566,7 +16117,6 @@ if test "${ac_cv_func_getpgrp_void+set}" = set; then
14566else 16117else
14567 # Use it with a single arg. 16118 # Use it with a single arg.
14568cat >conftest.$ac_ext <<_ACEOF 16119cat >conftest.$ac_ext <<_ACEOF
14569#line $LINENO "configure"
14570/* confdefs.h. */ 16120/* confdefs.h. */
14571_ACEOF 16121_ACEOF
14572cat confdefs.h >>conftest.$ac_ext 16122cat confdefs.h >>conftest.$ac_ext
@@ -14583,11 +16133,21 @@ getpgrp (0);
14583_ACEOF 16133_ACEOF
14584rm -f conftest.$ac_objext 16134rm -f conftest.$ac_objext
14585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586 (eval $ac_compile) 2>&5 16136 (eval $ac_compile) 2>conftest.er1
14587 ac_status=$? 16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && 16142 (exit $ac_status); } &&
14590 { ac_try='test -s conftest.$ac_objext' 16143 { ac_try='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5 16152 (eval $ac_try) 2>&5
14593 ac_status=$? 16153 ac_status=$?
@@ -14600,7 +16160,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
14600 16160
14601ac_cv_func_getpgrp_void=yes 16161ac_cv_func_getpgrp_void=yes
14602fi 16162fi
14603rm -f conftest.$ac_objext conftest.$ac_ext 16163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14604 16164
14605fi 16165fi
14606echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 16166echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
@@ -14624,21 +16184,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6 16184 echo $ECHO_N "(cached) $ECHO_C" >&6
14625else 16185else
14626 cat >conftest.$ac_ext <<_ACEOF 16186 cat >conftest.$ac_ext <<_ACEOF
14627#line $LINENO "configure"
14628/* confdefs.h. */ 16187/* confdefs.h. */
14629_ACEOF 16188_ACEOF
14630cat confdefs.h >>conftest.$ac_ext 16189cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF 16190cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */ 16191/* end confdefs.h. */
16192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16194#define $ac_func innocuous_$ac_func
16195
14633/* System header to define __stub macros and hopefully few prototypes, 16196/* System header to define __stub macros and hopefully few prototypes,
14634 which can conflict with char $ac_func (); below. 16197 which can conflict with char $ac_func (); below.
14635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14636 <limits.h> exists even on freestanding compilers. */ 16199 <limits.h> exists even on freestanding compilers. */
16200
14637#ifdef __STDC__ 16201#ifdef __STDC__
14638# include <limits.h> 16202# include <limits.h>
14639#else 16203#else
14640# include <assert.h> 16204# include <assert.h>
14641#endif 16205#endif
16206
16207#undef $ac_func
16208
14642/* Override any gcc2 internal prototype to avoid an error. */ 16209/* Override any gcc2 internal prototype to avoid an error. */
14643#ifdef __cplusplus 16210#ifdef __cplusplus
14644extern "C" 16211extern "C"
@@ -14669,11 +16236,21 @@ return f != $ac_func;
14669_ACEOF 16236_ACEOF
14670rm -f conftest.$ac_objext conftest$ac_exeext 16237rm -f conftest.$ac_objext conftest$ac_exeext
14671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5 16239 (eval $ac_link) 2>conftest.er1
14673 ac_status=$? 16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && 16245 (exit $ac_status); } &&
14676 { ac_try='test -s conftest$ac_exeext' 16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest$ac_exeext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5 16255 (eval $ac_try) 2>&5
14679 ac_status=$? 16256 ac_status=$?
@@ -14686,7 +16263,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
14686 16263
14687eval "$as_ac_var=no" 16264eval "$as_ac_var=no"
14688fi 16265fi
14689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16266rm -f conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
14690fi 16268fi
14691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -14705,7 +16283,6 @@ else
14705 ac_check_lib_save_LIBS=$LIBS 16283 ac_check_lib_save_LIBS=$LIBS
14706LIBS="-lintl $LIBS" 16284LIBS="-lintl $LIBS"
14707cat >conftest.$ac_ext <<_ACEOF 16285cat >conftest.$ac_ext <<_ACEOF
14708#line $LINENO "configure"
14709/* confdefs.h. */ 16286/* confdefs.h. */
14710_ACEOF 16287_ACEOF
14711cat confdefs.h >>conftest.$ac_ext 16288cat confdefs.h >>conftest.$ac_ext
@@ -14729,11 +16306,21 @@ strftime ();
14729_ACEOF 16306_ACEOF
14730rm -f conftest.$ac_objext conftest$ac_exeext 16307rm -f conftest.$ac_objext conftest$ac_exeext
14731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5 16309 (eval $ac_link) 2>conftest.er1
14733 ac_status=$? 16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } && 16315 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext' 16316 { ac_try='test -z "$ac_c_werror_flag"
16317 || test ! -s conftest.err'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5 16325 (eval $ac_try) 2>&5
14739 ac_status=$? 16326 ac_status=$?
@@ -14746,7 +16333,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
14746 16333
14747ac_cv_lib_intl_strftime=no 16334ac_cv_lib_intl_strftime=no
14748fi 16335fi
14749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16336rm -f conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
14750LIBS=$ac_check_lib_save_LIBS 16338LIBS=$ac_check_lib_save_LIBS
14751fi 16339fi
14752echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 16340echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
@@ -14774,21 +16362,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
14774 echo $ECHO_N "(cached) $ECHO_C" >&6 16362 echo $ECHO_N "(cached) $ECHO_C" >&6
14775else 16363else
14776 cat >conftest.$ac_ext <<_ACEOF 16364 cat >conftest.$ac_ext <<_ACEOF
14777#line $LINENO "configure"
14778/* confdefs.h. */ 16365/* confdefs.h. */
14779_ACEOF 16366_ACEOF
14780cat confdefs.h >>conftest.$ac_ext 16367cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF 16368cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h. */ 16369/* end confdefs.h. */
16370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16372#define $ac_func innocuous_$ac_func
16373
14783/* System header to define __stub macros and hopefully few prototypes, 16374/* System header to define __stub macros and hopefully few prototypes,
14784 which can conflict with char $ac_func (); below. 16375 which can conflict with char $ac_func (); below.
14785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14786 <limits.h> exists even on freestanding compilers. */ 16377 <limits.h> exists even on freestanding compilers. */
16378
14787#ifdef __STDC__ 16379#ifdef __STDC__
14788# include <limits.h> 16380# include <limits.h>
14789#else 16381#else
14790# include <assert.h> 16382# include <assert.h>
14791#endif 16383#endif
16384
16385#undef $ac_func
16386
14792/* Override any gcc2 internal prototype to avoid an error. */ 16387/* Override any gcc2 internal prototype to avoid an error. */
14793#ifdef __cplusplus 16388#ifdef __cplusplus
14794extern "C" 16389extern "C"
@@ -14819,11 +16414,21 @@ return f != $ac_func;
14819_ACEOF 16414_ACEOF
14820rm -f conftest.$ac_objext conftest$ac_exeext 16415rm -f conftest.$ac_objext conftest$ac_exeext
14821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822 (eval $ac_link) 2>&5 16417 (eval $ac_link) 2>conftest.er1
14823 ac_status=$? 16418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && 16423 (exit $ac_status); } &&
14826 { ac_try='test -s conftest$ac_exeext' 16424 { ac_try='test -z "$ac_c_werror_flag"
16425 || test ! -s conftest.err'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest$ac_exeext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5 16433 (eval $ac_try) 2>&5
14829 ac_status=$? 16434 ac_status=$?
@@ -14836,7 +16441,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
14836 16441
14837eval "$as_ac_var=no" 16442eval "$as_ac_var=no"
14838fi 16443fi
14839rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16444rm -f conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
14840fi 16446fi
14841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -14860,21 +16466,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6 16466 echo $ECHO_N "(cached) $ECHO_C" >&6
14861else 16467else
14862 cat >conftest.$ac_ext <<_ACEOF 16468 cat >conftest.$ac_ext <<_ACEOF
14863#line $LINENO "configure"
14864/* confdefs.h. */ 16469/* confdefs.h. */
14865_ACEOF 16470_ACEOF
14866cat confdefs.h >>conftest.$ac_ext 16471cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF 16472cat >>conftest.$ac_ext <<_ACEOF
14868/* end confdefs.h. */ 16473/* end confdefs.h. */
16474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476#define $ac_func innocuous_$ac_func
16477
14869/* System header to define __stub macros and hopefully few prototypes, 16478/* System header to define __stub macros and hopefully few prototypes,
14870 which can conflict with char $ac_func (); below. 16479 which can conflict with char $ac_func (); below.
14871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14872 <limits.h> exists even on freestanding compilers. */ 16481 <limits.h> exists even on freestanding compilers. */
16482
14873#ifdef __STDC__ 16483#ifdef __STDC__
14874# include <limits.h> 16484# include <limits.h>
14875#else 16485#else
14876# include <assert.h> 16486# include <assert.h>
14877#endif 16487#endif
16488
16489#undef $ac_func
16490
14878/* Override any gcc2 internal prototype to avoid an error. */ 16491/* Override any gcc2 internal prototype to avoid an error. */
14879#ifdef __cplusplus 16492#ifdef __cplusplus
14880extern "C" 16493extern "C"
@@ -14905,11 +16518,21 @@ return f != $ac_func;
14905_ACEOF 16518_ACEOF
14906rm -f conftest.$ac_objext conftest$ac_exeext 16519rm -f conftest.$ac_objext conftest$ac_exeext
14907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908 (eval $ac_link) 2>&5 16521 (eval $ac_link) 2>conftest.er1
14909 ac_status=$? 16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } && 16527 (exit $ac_status); } &&
14912 { ac_try='test -s conftest$ac_exeext' 16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5 16537 (eval $ac_try) 2>&5
14915 ac_status=$? 16538 ac_status=$?
@@ -14922,7 +16545,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
14922 16545
14923eval "$as_ac_var=no" 16546eval "$as_ac_var=no"
14924fi 16547fi
14925rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16548rm -f conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
14926fi 16550fi
14927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -14948,7 +16572,6 @@ else
14948 ac_check_lib_save_LIBS=$LIBS 16572 ac_check_lib_save_LIBS=$LIBS
14949LIBS="-lncurses $LIBS" 16573LIBS="-lncurses $LIBS"
14950cat >conftest.$ac_ext <<_ACEOF 16574cat >conftest.$ac_ext <<_ACEOF
14951#line $LINENO "configure"
14952/* confdefs.h. */ 16575/* confdefs.h. */
14953_ACEOF 16576_ACEOF
14954cat confdefs.h >>conftest.$ac_ext 16577cat confdefs.h >>conftest.$ac_ext
@@ -14972,11 +16595,21 @@ tparm ();
14972_ACEOF 16595_ACEOF
14973rm -f conftest.$ac_objext conftest$ac_exeext 16596rm -f conftest.$ac_objext conftest$ac_exeext
14974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>&5 16598 (eval $ac_link) 2>conftest.er1
14976 ac_status=$? 16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && 16604 (exit $ac_status); } &&
14979 { ac_try='test -s conftest$ac_exeext' 16605 { ac_try='test -z "$ac_c_werror_flag"
16606 || test ! -s conftest.err'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5 16614 (eval $ac_try) 2>&5
14982 ac_status=$? 16615 ac_status=$?
@@ -14989,7 +16622,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
14989 16622
14990ac_cv_lib_ncurses_tparm=no 16623ac_cv_lib_ncurses_tparm=no
14991fi 16624fi
14992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16625rm -f conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext conftest.$ac_ext
14993LIBS=$ac_check_lib_save_LIBS 16627LIBS=$ac_check_lib_save_LIBS
14994fi 16628fi
14995echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 16629echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
@@ -15014,21 +16648,28 @@ if test "${ac_cv_func_res_send+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6 16648 echo $ECHO_N "(cached) $ECHO_C" >&6
15015else 16649else
15016 cat >conftest.$ac_ext <<_ACEOF 16650 cat >conftest.$ac_ext <<_ACEOF
15017#line $LINENO "configure"
15018/* confdefs.h. */ 16651/* confdefs.h. */
15019_ACEOF 16652_ACEOF
15020cat confdefs.h >>conftest.$ac_ext 16653cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF 16654cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */ 16655/* end confdefs.h. */
16656/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16658#define res_send innocuous_res_send
16659
15023/* System header to define __stub macros and hopefully few prototypes, 16660/* System header to define __stub macros and hopefully few prototypes,
15024 which can conflict with char res_send (); below. 16661 which can conflict with char res_send (); below.
15025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15026 <limits.h> exists even on freestanding compilers. */ 16663 <limits.h> exists even on freestanding compilers. */
16664
15027#ifdef __STDC__ 16665#ifdef __STDC__
15028# include <limits.h> 16666# include <limits.h>
15029#else 16667#else
15030# include <assert.h> 16668# include <assert.h>
15031#endif 16669#endif
16670
16671#undef res_send
16672
15032/* Override any gcc2 internal prototype to avoid an error. */ 16673/* Override any gcc2 internal prototype to avoid an error. */
15033#ifdef __cplusplus 16674#ifdef __cplusplus
15034extern "C" 16675extern "C"
@@ -15059,11 +16700,21 @@ return f != res_send;
15059_ACEOF 16700_ACEOF
15060rm -f conftest.$ac_objext conftest$ac_exeext 16701rm -f conftest.$ac_objext conftest$ac_exeext
15061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15062 (eval $ac_link) 2>&5 16703 (eval $ac_link) 2>conftest.er1
15063 ac_status=$? 16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && 16709 (exit $ac_status); } &&
15066 { ac_try='test -s conftest$ac_exeext' 16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest$ac_exeext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5 16719 (eval $ac_try) 2>&5
15069 ac_status=$? 16720 ac_status=$?
@@ -15076,7 +16727,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15076 16727
15077ac_cv_func_res_send=no 16728ac_cv_func_res_send=no
15078fi 16729fi
15079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16730rm -f conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
15080fi 16732fi
15081echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 16733echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
15082echo "${ECHO_T}$ac_cv_func_res_send" >&6 16734echo "${ECHO_T}$ac_cv_func_res_send" >&6
@@ -15089,21 +16741,28 @@ if test "${ac_cv_func___res_send+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6 16741 echo $ECHO_N "(cached) $ECHO_C" >&6
15090else 16742else
15091 cat >conftest.$ac_ext <<_ACEOF 16743 cat >conftest.$ac_ext <<_ACEOF
15092#line $LINENO "configure"
15093/* confdefs.h. */ 16744/* confdefs.h. */
15094_ACEOF 16745_ACEOF
15095cat confdefs.h >>conftest.$ac_ext 16746cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF 16747cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */ 16748/* end confdefs.h. */
16749/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16751#define __res_send innocuous___res_send
16752
15098/* System header to define __stub macros and hopefully few prototypes, 16753/* System header to define __stub macros and hopefully few prototypes,
15099 which can conflict with char __res_send (); below. 16754 which can conflict with char __res_send (); below.
15100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15101 <limits.h> exists even on freestanding compilers. */ 16756 <limits.h> exists even on freestanding compilers. */
16757
15102#ifdef __STDC__ 16758#ifdef __STDC__
15103# include <limits.h> 16759# include <limits.h>
15104#else 16760#else
15105# include <assert.h> 16761# include <assert.h>
15106#endif 16762#endif
16763
16764#undef __res_send
16765
15107/* Override any gcc2 internal prototype to avoid an error. */ 16766/* Override any gcc2 internal prototype to avoid an error. */
15108#ifdef __cplusplus 16767#ifdef __cplusplus
15109extern "C" 16768extern "C"
@@ -15134,11 +16793,21 @@ return f != __res_send;
15134_ACEOF 16793_ACEOF
15135rm -f conftest.$ac_objext conftest$ac_exeext 16794rm -f conftest.$ac_objext conftest$ac_exeext
15136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15137 (eval $ac_link) 2>&5 16796 (eval $ac_link) 2>conftest.er1
15138 ac_status=$? 16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && 16802 (exit $ac_status); } &&
15141 { ac_try='test -s conftest$ac_exeext' 16803 { ac_try='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5 16812 (eval $ac_try) 2>&5
15144 ac_status=$? 16813 ac_status=$?
@@ -15151,7 +16820,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15151 16820
15152ac_cv_func___res_send=no 16821ac_cv_func___res_send=no
15153fi 16822fi
15154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16823rm -f conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
15155fi 16825fi
15156echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 16826echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
15157echo "${ECHO_T}$ac_cv_func___res_send" >&6 16827echo "${ECHO_T}$ac_cv_func___res_send" >&6
@@ -15166,7 +16836,6 @@ else
15166 ac_check_lib_save_LIBS=$LIBS 16836 ac_check_lib_save_LIBS=$LIBS
15167LIBS="-lresolv $LIBS" 16837LIBS="-lresolv $LIBS"
15168cat >conftest.$ac_ext <<_ACEOF 16838cat >conftest.$ac_ext <<_ACEOF
15169#line $LINENO "configure"
15170/* confdefs.h. */ 16839/* confdefs.h. */
15171_ACEOF 16840_ACEOF
15172cat confdefs.h >>conftest.$ac_ext 16841cat confdefs.h >>conftest.$ac_ext
@@ -15190,11 +16859,21 @@ res_send ();
15190_ACEOF 16859_ACEOF
15191rm -f conftest.$ac_objext conftest$ac_exeext 16860rm -f conftest.$ac_objext conftest$ac_exeext
15192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15193 (eval $ac_link) 2>&5 16862 (eval $ac_link) 2>conftest.er1
15194 ac_status=$? 16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && 16868 (exit $ac_status); } &&
15197 { ac_try='test -s conftest$ac_exeext' 16869 { ac_try='test -z "$ac_c_werror_flag"
16870 || test ! -s conftest.err'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5 16878 (eval $ac_try) 2>&5
15200 ac_status=$? 16879 ac_status=$?
@@ -15207,7 +16886,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15207 16886
15208ac_cv_lib_resolv_res_send=no 16887ac_cv_lib_resolv_res_send=no
15209fi 16888fi
15210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16889rm -f conftest.err conftest.$ac_objext \
16890 conftest$ac_exeext conftest.$ac_ext
15211LIBS=$ac_check_lib_save_LIBS 16891LIBS=$ac_check_lib_save_LIBS
15212fi 16892fi
15213echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 16893echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
@@ -15223,7 +16903,6 @@ else
15223 ac_check_lib_save_LIBS=$LIBS 16903 ac_check_lib_save_LIBS=$LIBS
15224LIBS="-lresolv $LIBS" 16904LIBS="-lresolv $LIBS"
15225cat >conftest.$ac_ext <<_ACEOF 16905cat >conftest.$ac_ext <<_ACEOF
15226#line $LINENO "configure"
15227/* confdefs.h. */ 16906/* confdefs.h. */
15228_ACEOF 16907_ACEOF
15229cat confdefs.h >>conftest.$ac_ext 16908cat confdefs.h >>conftest.$ac_ext
@@ -15247,11 +16926,21 @@ __res_send ();
15247_ACEOF 16926_ACEOF
15248rm -f conftest.$ac_objext conftest$ac_exeext 16927rm -f conftest.$ac_objext conftest$ac_exeext
15249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>&5 16929 (eval $ac_link) 2>conftest.er1
15251 ac_status=$? 16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } && 16935 (exit $ac_status); } &&
15254 { ac_try='test -s conftest$ac_exeext' 16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5 16945 (eval $ac_try) 2>&5
15257 ac_status=$? 16946 ac_status=$?
@@ -15264,7 +16953,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15264 16953
15265ac_cv_lib_resolv___res_send=no 16954ac_cv_lib_resolv___res_send=no
15266fi 16955fi
15267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16956rm -f conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
15268LIBS=$ac_check_lib_save_LIBS 16958LIBS=$ac_check_lib_save_LIBS
15269fi 16959fi
15270echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 16960echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
@@ -15295,21 +16985,28 @@ if test "${ac_cv_func_hes_getmailhost+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6 16985 echo $ECHO_N "(cached) $ECHO_C" >&6
15296else 16986else
15297 cat >conftest.$ac_ext <<_ACEOF 16987 cat >conftest.$ac_ext <<_ACEOF
15298#line $LINENO "configure"
15299/* confdefs.h. */ 16988/* confdefs.h. */
15300_ACEOF 16989_ACEOF
15301cat confdefs.h >>conftest.$ac_ext 16990cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF 16991cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */ 16992/* end confdefs.h. */
16993/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16995#define hes_getmailhost innocuous_hes_getmailhost
16996
15304/* System header to define __stub macros and hopefully few prototypes, 16997/* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char hes_getmailhost (); below. 16998 which can conflict with char hes_getmailhost (); below.
15306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15307 <limits.h> exists even on freestanding compilers. */ 17000 <limits.h> exists even on freestanding compilers. */
17001
15308#ifdef __STDC__ 17002#ifdef __STDC__
15309# include <limits.h> 17003# include <limits.h>
15310#else 17004#else
15311# include <assert.h> 17005# include <assert.h>
15312#endif 17006#endif
17007
17008#undef hes_getmailhost
17009
15313/* Override any gcc2 internal prototype to avoid an error. */ 17010/* Override any gcc2 internal prototype to avoid an error. */
15314#ifdef __cplusplus 17011#ifdef __cplusplus
15315extern "C" 17012extern "C"
@@ -15340,11 +17037,21 @@ return f != hes_getmailhost;
15340_ACEOF 17037_ACEOF
15341rm -f conftest.$ac_objext conftest$ac_exeext 17038rm -f conftest.$ac_objext conftest$ac_exeext
15342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15343 (eval $ac_link) 2>&5 17040 (eval $ac_link) 2>conftest.er1
15344 ac_status=$? 17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } && 17046 (exit $ac_status); } &&
15347 { ac_try='test -s conftest$ac_exeext' 17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest$ac_exeext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5 17056 (eval $ac_try) 2>&5
15350 ac_status=$? 17057 ac_status=$?
@@ -15357,7 +17064,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15357 17064
15358ac_cv_func_hes_getmailhost=no 17065ac_cv_func_hes_getmailhost=no
15359fi 17066fi
15360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17067rm -f conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
15361fi 17069fi
15362echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 17070echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
15363echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 17071echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
@@ -15372,7 +17080,6 @@ else
15372 ac_check_lib_save_LIBS=$LIBS 17080 ac_check_lib_save_LIBS=$LIBS
15373LIBS="-lhesiod $RESOLVLIB $LIBS" 17081LIBS="-lhesiod $RESOLVLIB $LIBS"
15374cat >conftest.$ac_ext <<_ACEOF 17082cat >conftest.$ac_ext <<_ACEOF
15375#line $LINENO "configure"
15376/* confdefs.h. */ 17083/* confdefs.h. */
15377_ACEOF 17084_ACEOF
15378cat confdefs.h >>conftest.$ac_ext 17085cat confdefs.h >>conftest.$ac_ext
@@ -15396,11 +17103,21 @@ hes_getmailhost ();
15396_ACEOF 17103_ACEOF
15397rm -f conftest.$ac_objext conftest$ac_exeext 17104rm -f conftest.$ac_objext conftest$ac_exeext
15398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>&5 17106 (eval $ac_link) 2>conftest.er1
15400 ac_status=$? 17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && 17112 (exit $ac_status); } &&
15403 { ac_try='test -s conftest$ac_exeext' 17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5 17122 (eval $ac_try) 2>&5
15406 ac_status=$? 17123 ac_status=$?
@@ -15413,7 +17130,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15413 17130
15414ac_cv_lib_hesiod_hes_getmailhost=no 17131ac_cv_lib_hesiod_hes_getmailhost=no
15415fi 17132fi
15416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17133rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
15417LIBS=$ac_check_lib_save_LIBS 17135LIBS=$ac_check_lib_save_LIBS
15418fi 17136fi
15419echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 17137echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
@@ -15443,7 +17161,6 @@ else
15443 ac_check_lib_save_LIBS=$LIBS 17161 ac_check_lib_save_LIBS=$LIBS
15444LIBS="-lcom_err $LIBS" 17162LIBS="-lcom_err $LIBS"
15445cat >conftest.$ac_ext <<_ACEOF 17163cat >conftest.$ac_ext <<_ACEOF
15446#line $LINENO "configure"
15447/* confdefs.h. */ 17164/* confdefs.h. */
15448_ACEOF 17165_ACEOF
15449cat confdefs.h >>conftest.$ac_ext 17166cat confdefs.h >>conftest.$ac_ext
@@ -15467,11 +17184,21 @@ com_err ();
15467_ACEOF 17184_ACEOF
15468rm -f conftest.$ac_objext conftest$ac_exeext 17185rm -f conftest.$ac_objext conftest$ac_exeext
15469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>&5 17187 (eval $ac_link) 2>conftest.er1
15471 ac_status=$? 17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } && 17193 (exit $ac_status); } &&
15474 { ac_try='test -s conftest$ac_exeext' 17194 { ac_try='test -z "$ac_c_werror_flag"
17195 || test ! -s conftest.err'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest$ac_exeext'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5 17203 (eval $ac_try) 2>&5
15477 ac_status=$? 17204 ac_status=$?
@@ -15484,7 +17211,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15484 17211
15485ac_cv_lib_com_err_com_err=no 17212ac_cv_lib_com_err_com_err=no
15486fi 17213fi
15487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17214rm -f conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
15488LIBS=$ac_check_lib_save_LIBS 17216LIBS=$ac_check_lib_save_LIBS
15489fi 17217fi
15490echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 17218echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
@@ -15507,7 +17235,6 @@ else
15507 ac_check_lib_save_LIBS=$LIBS 17235 ac_check_lib_save_LIBS=$LIBS
15508LIBS="-lk5crypto $LIBS" 17236LIBS="-lk5crypto $LIBS"
15509cat >conftest.$ac_ext <<_ACEOF 17237cat >conftest.$ac_ext <<_ACEOF
15510#line $LINENO "configure"
15511/* confdefs.h. */ 17238/* confdefs.h. */
15512_ACEOF 17239_ACEOF
15513cat confdefs.h >>conftest.$ac_ext 17240cat confdefs.h >>conftest.$ac_ext
@@ -15531,11 +17258,21 @@ mit_des_cbc_encrypt ();
15531_ACEOF 17258_ACEOF
15532rm -f conftest.$ac_objext conftest$ac_exeext 17259rm -f conftest.$ac_objext conftest$ac_exeext
15533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15534 (eval $ac_link) 2>&5 17261 (eval $ac_link) 2>conftest.er1
15535 ac_status=$? 17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } && 17267 (exit $ac_status); } &&
15538 { ac_try='test -s conftest$ac_exeext' 17268 { ac_try='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5 17277 (eval $ac_try) 2>&5
15541 ac_status=$? 17278 ac_status=$?
@@ -15548,7 +17285,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15548 17285
15549ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 17286ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15550fi 17287fi
15551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17288rm -f conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
15552LIBS=$ac_check_lib_save_LIBS 17290LIBS=$ac_check_lib_save_LIBS
15553fi 17291fi
15554echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 17292echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
@@ -15571,7 +17309,6 @@ else
15571 ac_check_lib_save_LIBS=$LIBS 17309 ac_check_lib_save_LIBS=$LIBS
15572LIBS="-lcrypto $LIBS" 17310LIBS="-lcrypto $LIBS"
15573cat >conftest.$ac_ext <<_ACEOF 17311cat >conftest.$ac_ext <<_ACEOF
15574#line $LINENO "configure"
15575/* confdefs.h. */ 17312/* confdefs.h. */
15576_ACEOF 17313_ACEOF
15577cat confdefs.h >>conftest.$ac_ext 17314cat confdefs.h >>conftest.$ac_ext
@@ -15595,11 +17332,21 @@ mit_des_cbc_encrypt ();
15595_ACEOF 17332_ACEOF
15596rm -f conftest.$ac_objext conftest$ac_exeext 17333rm -f conftest.$ac_objext conftest$ac_exeext
15597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5 17335 (eval $ac_link) 2>conftest.er1
15599 ac_status=$? 17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && 17341 (exit $ac_status); } &&
15602 { ac_try='test -s conftest$ac_exeext' 17342 { ac_try='test -z "$ac_c_werror_flag"
17343 || test ! -s conftest.err'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5 17351 (eval $ac_try) 2>&5
15605 ac_status=$? 17352 ac_status=$?
@@ -15612,7 +17359,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15612 17359
15613ac_cv_lib_crypto_mit_des_cbc_encrypt=no 17360ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15614fi 17361fi
15615rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17362rm -f conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
15616LIBS=$ac_check_lib_save_LIBS 17364LIBS=$ac_check_lib_save_LIBS
15617fi 17365fi
15618echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 17366echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
@@ -15635,7 +17383,6 @@ else
15635 ac_check_lib_save_LIBS=$LIBS 17383 ac_check_lib_save_LIBS=$LIBS
15636LIBS="-lkrb5 $LIBS" 17384LIBS="-lkrb5 $LIBS"
15637cat >conftest.$ac_ext <<_ACEOF 17385cat >conftest.$ac_ext <<_ACEOF
15638#line $LINENO "configure"
15639/* confdefs.h. */ 17386/* confdefs.h. */
15640_ACEOF 17387_ACEOF
15641cat confdefs.h >>conftest.$ac_ext 17388cat confdefs.h >>conftest.$ac_ext
@@ -15659,11 +17406,21 @@ krb5_init_context ();
15659_ACEOF 17406_ACEOF
15660rm -f conftest.$ac_objext conftest$ac_exeext 17407rm -f conftest.$ac_objext conftest$ac_exeext
15661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15662 (eval $ac_link) 2>&5 17409 (eval $ac_link) 2>conftest.er1
15663 ac_status=$? 17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && 17415 (exit $ac_status); } &&
15666 { ac_try='test -s conftest$ac_exeext' 17416 { ac_try='test -z "$ac_c_werror_flag"
17417 || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5 17425 (eval $ac_try) 2>&5
15669 ac_status=$? 17426 ac_status=$?
@@ -15676,7 +17433,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15676 17433
15677ac_cv_lib_krb5_krb5_init_context=no 17434ac_cv_lib_krb5_krb5_init_context=no
15678fi 17435fi
15679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17436rm -f conftest.err conftest.$ac_objext \
17437 conftest$ac_exeext conftest.$ac_ext
15680LIBS=$ac_check_lib_save_LIBS 17438LIBS=$ac_check_lib_save_LIBS
15681fi 17439fi
15682echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 17440echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
@@ -15700,7 +17458,6 @@ else
15700 ac_check_lib_save_LIBS=$LIBS 17458 ac_check_lib_save_LIBS=$LIBS
15701LIBS="-ldes425 $LIBS" 17459LIBS="-ldes425 $LIBS"
15702cat >conftest.$ac_ext <<_ACEOF 17460cat >conftest.$ac_ext <<_ACEOF
15703#line $LINENO "configure"
15704/* confdefs.h. */ 17461/* confdefs.h. */
15705_ACEOF 17462_ACEOF
15706cat confdefs.h >>conftest.$ac_ext 17463cat confdefs.h >>conftest.$ac_ext
@@ -15724,11 +17481,21 @@ des_cbc_encrypt ();
15724_ACEOF 17481_ACEOF
15725rm -f conftest.$ac_objext conftest$ac_exeext 17482rm -f conftest.$ac_objext conftest$ac_exeext
15726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5 17484 (eval $ac_link) 2>conftest.er1
15728 ac_status=$? 17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && 17490 (exit $ac_status); } &&
15731 { ac_try='test -s conftest$ac_exeext' 17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5 17500 (eval $ac_try) 2>&5
15734 ac_status=$? 17501 ac_status=$?
@@ -15741,7 +17508,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15741 17508
15742ac_cv_lib_des425_des_cbc_encrypt=no 17509ac_cv_lib_des425_des_cbc_encrypt=no
15743fi 17510fi
15744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17511rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
15745LIBS=$ac_check_lib_save_LIBS 17513LIBS=$ac_check_lib_save_LIBS
15746fi 17514fi
15747echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 17515echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
@@ -15763,7 +17531,6 @@ else
15763 ac_check_lib_save_LIBS=$LIBS 17531 ac_check_lib_save_LIBS=$LIBS
15764LIBS="-ldes $LIBS" 17532LIBS="-ldes $LIBS"
15765cat >conftest.$ac_ext <<_ACEOF 17533cat >conftest.$ac_ext <<_ACEOF
15766#line $LINENO "configure"
15767/* confdefs.h. */ 17534/* confdefs.h. */
15768_ACEOF 17535_ACEOF
15769cat confdefs.h >>conftest.$ac_ext 17536cat confdefs.h >>conftest.$ac_ext
@@ -15787,11 +17554,21 @@ des_cbc_encrypt ();
15787_ACEOF 17554_ACEOF
15788rm -f conftest.$ac_objext conftest$ac_exeext 17555rm -f conftest.$ac_objext conftest$ac_exeext
15789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5 17557 (eval $ac_link) 2>conftest.er1
15791 ac_status=$? 17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } && 17563 (exit $ac_status); } &&
15794 { ac_try='test -s conftest$ac_exeext' 17564 { ac_try='test -z "$ac_c_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5 17573 (eval $ac_try) 2>&5
15797 ac_status=$? 17574 ac_status=$?
@@ -15804,7 +17581,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15804 17581
15805ac_cv_lib_des_des_cbc_encrypt=no 17582ac_cv_lib_des_des_cbc_encrypt=no
15806fi 17583fi
15807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17584rm -f conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
15808LIBS=$ac_check_lib_save_LIBS 17586LIBS=$ac_check_lib_save_LIBS
15809fi 17587fi
15810echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 17588echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
@@ -15829,7 +17607,6 @@ else
15829 ac_check_lib_save_LIBS=$LIBS 17607 ac_check_lib_save_LIBS=$LIBS
15830LIBS="-lkrb4 $LIBS" 17608LIBS="-lkrb4 $LIBS"
15831cat >conftest.$ac_ext <<_ACEOF 17609cat >conftest.$ac_ext <<_ACEOF
15832#line $LINENO "configure"
15833/* confdefs.h. */ 17610/* confdefs.h. */
15834_ACEOF 17611_ACEOF
15835cat confdefs.h >>conftest.$ac_ext 17612cat confdefs.h >>conftest.$ac_ext
@@ -15853,11 +17630,21 @@ krb_get_cred ();
15853_ACEOF 17630_ACEOF
15854rm -f conftest.$ac_objext conftest$ac_exeext 17631rm -f conftest.$ac_objext conftest$ac_exeext
15855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>&5 17633 (eval $ac_link) 2>conftest.er1
15857 ac_status=$? 17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } && 17639 (exit $ac_status); } &&
15860 { ac_try='test -s conftest$ac_exeext' 17640 { ac_try='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest$ac_exeext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5 17649 (eval $ac_try) 2>&5
15863 ac_status=$? 17650 ac_status=$?
@@ -15870,7 +17657,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15870 17657
15871ac_cv_lib_krb4_krb_get_cred=no 17658ac_cv_lib_krb4_krb_get_cred=no
15872fi 17659fi
15873rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17660rm -f conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
15874LIBS=$ac_check_lib_save_LIBS 17662LIBS=$ac_check_lib_save_LIBS
15875fi 17663fi
15876echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 17664echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
@@ -15892,7 +17680,6 @@ else
15892 ac_check_lib_save_LIBS=$LIBS 17680 ac_check_lib_save_LIBS=$LIBS
15893LIBS="-lkrb $LIBS" 17681LIBS="-lkrb $LIBS"
15894cat >conftest.$ac_ext <<_ACEOF 17682cat >conftest.$ac_ext <<_ACEOF
15895#line $LINENO "configure"
15896/* confdefs.h. */ 17683/* confdefs.h. */
15897_ACEOF 17684_ACEOF
15898cat confdefs.h >>conftest.$ac_ext 17685cat confdefs.h >>conftest.$ac_ext
@@ -15916,11 +17703,21 @@ krb_get_cred ();
15916_ACEOF 17703_ACEOF
15917rm -f conftest.$ac_objext conftest$ac_exeext 17704rm -f conftest.$ac_objext conftest$ac_exeext
15918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>&5 17706 (eval $ac_link) 2>conftest.er1
15920 ac_status=$? 17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } && 17712 (exit $ac_status); } &&
15923 { ac_try='test -s conftest$ac_exeext' 17713 { ac_try='test -z "$ac_c_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5 17722 (eval $ac_try) 2>&5
15926 ac_status=$? 17723 ac_status=$?
@@ -15933,7 +17730,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
15933 17730
15934ac_cv_lib_krb_krb_get_cred=no 17731ac_cv_lib_krb_krb_get_cred=no
15935fi 17732fi
15936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17733rm -f conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
15937LIBS=$ac_check_lib_save_LIBS 17735LIBS=$ac_check_lib_save_LIBS
15938fi 17736fi
15939echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 17737echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
@@ -15969,7 +17767,6 @@ else
15969echo "$as_me:$LINENO: checking $ac_header usability" >&5 17767echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 17768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15971cat >conftest.$ac_ext <<_ACEOF 17769cat >conftest.$ac_ext <<_ACEOF
15972#line $LINENO "configure"
15973/* confdefs.h. */ 17770/* confdefs.h. */
15974_ACEOF 17771_ACEOF
15975cat confdefs.h >>conftest.$ac_ext 17772cat confdefs.h >>conftest.$ac_ext
@@ -15980,11 +17777,21 @@ $ac_includes_default
15980_ACEOF 17777_ACEOF
15981rm -f conftest.$ac_objext 17778rm -f conftest.$ac_objext
15982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>&5 17780 (eval $ac_compile) 2>conftest.er1
15984 ac_status=$? 17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && 17786 (exit $ac_status); } &&
15987 { ac_try='test -s conftest.$ac_objext' 17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5 17796 (eval $ac_try) 2>&5
15990 ac_status=$? 17797 ac_status=$?
@@ -15997,7 +17804,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
15997 17804
15998ac_header_compiler=no 17805ac_header_compiler=no
15999fi 17806fi
16000rm -f conftest.$ac_objext conftest.$ac_ext 17807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17808echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16002echo "${ECHO_T}$ac_header_compiler" >&6 17809echo "${ECHO_T}$ac_header_compiler" >&6
16003 17810
@@ -16005,7 +17812,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16005echo "$as_me:$LINENO: checking $ac_header presence" >&5 17812echo "$as_me:$LINENO: checking $ac_header presence" >&5
16006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 17813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16007cat >conftest.$ac_ext <<_ACEOF 17814cat >conftest.$ac_ext <<_ACEOF
16008#line $LINENO "configure"
16009/* confdefs.h. */ 17815/* confdefs.h. */
16010_ACEOF 17816_ACEOF
16011cat confdefs.h >>conftest.$ac_ext 17817cat confdefs.h >>conftest.$ac_ext
@@ -16023,6 +17829,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16023 (exit $ac_status); } >/dev/null; then 17829 (exit $ac_status); } >/dev/null; then
16024 if test -s conftest.err; then 17830 if test -s conftest.err; then
16025 ac_cpp_err=$ac_c_preproc_warn_flag 17831 ac_cpp_err=$ac_c_preproc_warn_flag
17832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16026 else 17833 else
16027 ac_cpp_err= 17834 ac_cpp_err=
16028 fi 17835 fi
@@ -16042,33 +17849,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042echo "${ECHO_T}$ac_header_preproc" >&6 17849echo "${ECHO_T}$ac_header_preproc" >&6
16043 17850
16044# So? What about this header? 17851# So? What about this header?
16045case $ac_header_compiler:$ac_header_preproc in 17852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 yes:no ) 17853 yes:no: )
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17855echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17857echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16051 ( 17858 ac_header_preproc=yes
16052 cat <<\_ASBOX
16053## ------------------------------------ ##
16054## Report this to bug-autoconf@gnu.org. ##
16055## ------------------------------------ ##
16056_ASBOX
16057 ) |
16058 sed "s/^/$as_me: WARNING: /" >&2
16059 ;; 17859 ;;
16060 no:yes ) 17860 no:yes:* )
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17862echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17864echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17866echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17868echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17872echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16067 ( 17873 (
16068 cat <<\_ASBOX 17874 cat <<\_ASBOX
16069## ------------------------------------ ## 17875## ------------------------------------------ ##
16070## Report this to bug-autoconf@gnu.org. ## 17876## Report this to the AC_PACKAGE_NAME lists. ##
16071## ------------------------------------ ## 17877## ------------------------------------------ ##
16072_ASBOX 17878_ASBOX
16073 ) | 17879 ) |
16074 sed "s/^/$as_me: WARNING: /" >&2 17880 sed "s/^/$as_me: WARNING: /" >&2
@@ -16079,7 +17885,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16079if eval "test \"\${$as_ac_Header+set}\" = set"; then 17885if eval "test \"\${$as_ac_Header+set}\" = set"; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6 17886 echo $ECHO_N "(cached) $ECHO_C" >&6
16081else 17887else
16082 eval "$as_ac_Header=$ac_header_preproc" 17888 eval "$as_ac_Header=\$ac_header_preproc"
16083fi 17889fi
16084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 17890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 17891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16112,7 +17918,6 @@ else
16112echo "$as_me:$LINENO: checking $ac_header usability" >&5 17918echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 17919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16114cat >conftest.$ac_ext <<_ACEOF 17920cat >conftest.$ac_ext <<_ACEOF
16115#line $LINENO "configure"
16116/* confdefs.h. */ 17921/* confdefs.h. */
16117_ACEOF 17922_ACEOF
16118cat confdefs.h >>conftest.$ac_ext 17923cat confdefs.h >>conftest.$ac_ext
@@ -16123,11 +17928,21 @@ $ac_includes_default
16123_ACEOF 17928_ACEOF
16124rm -f conftest.$ac_objext 17929rm -f conftest.$ac_objext
16125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16126 (eval $ac_compile) 2>&5 17931 (eval $ac_compile) 2>conftest.er1
16127 ac_status=$? 17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } && 17937 (exit $ac_status); } &&
16130 { ac_try='test -s conftest.$ac_objext' 17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest.$ac_objext'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5 17947 (eval $ac_try) 2>&5
16133 ac_status=$? 17948 ac_status=$?
@@ -16140,7 +17955,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16140 17955
16141ac_header_compiler=no 17956ac_header_compiler=no
16142fi 17957fi
16143rm -f conftest.$ac_objext conftest.$ac_ext 17958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145echo "${ECHO_T}$ac_header_compiler" >&6 17960echo "${ECHO_T}$ac_header_compiler" >&6
16146 17961
@@ -16148,7 +17963,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16148echo "$as_me:$LINENO: checking $ac_header presence" >&5 17963echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 17964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16150cat >conftest.$ac_ext <<_ACEOF 17965cat >conftest.$ac_ext <<_ACEOF
16151#line $LINENO "configure"
16152/* confdefs.h. */ 17966/* confdefs.h. */
16153_ACEOF 17967_ACEOF
16154cat confdefs.h >>conftest.$ac_ext 17968cat confdefs.h >>conftest.$ac_ext
@@ -16166,6 +17980,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16166 (exit $ac_status); } >/dev/null; then 17980 (exit $ac_status); } >/dev/null; then
16167 if test -s conftest.err; then 17981 if test -s conftest.err; then
16168 ac_cpp_err=$ac_c_preproc_warn_flag 17982 ac_cpp_err=$ac_c_preproc_warn_flag
17983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16169 else 17984 else
16170 ac_cpp_err= 17985 ac_cpp_err=
16171 fi 17986 fi
@@ -16185,33 +18000,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185echo "${ECHO_T}$ac_header_preproc" >&6 18000echo "${ECHO_T}$ac_header_preproc" >&6
16186 18001
16187# So? What about this header? 18002# So? What about this header?
16188case $ac_header_compiler:$ac_header_preproc in 18003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16189 yes:no ) 18004 yes:no: )
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16194 ( 18009 ac_header_preproc=yes
16195 cat <<\_ASBOX
16196## ------------------------------------ ##
16197## Report this to bug-autoconf@gnu.org. ##
16198## ------------------------------------ ##
16199_ASBOX
16200 ) |
16201 sed "s/^/$as_me: WARNING: /" >&2
16202 ;; 18010 ;;
16203 no:yes ) 18011 no:yes:* )
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18019echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16210 ( 18024 (
16211 cat <<\_ASBOX 18025 cat <<\_ASBOX
16212## ------------------------------------ ## 18026## ------------------------------------------ ##
16213## Report this to bug-autoconf@gnu.org. ## 18027## Report this to the AC_PACKAGE_NAME lists. ##
16214## ------------------------------------ ## 18028## ------------------------------------------ ##
16215_ASBOX 18029_ASBOX
16216 ) | 18030 ) |
16217 sed "s/^/$as_me: WARNING: /" >&2 18031 sed "s/^/$as_me: WARNING: /" >&2
@@ -16222,7 +18036,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16222if eval "test \"\${$as_ac_Header+set}\" = set"; then 18036if eval "test \"\${$as_ac_Header+set}\" = set"; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6 18037 echo $ECHO_N "(cached) $ECHO_C" >&6
16224else 18038else
16225 eval "$as_ac_Header=$ac_header_preproc" 18039 eval "$as_ac_Header=\$ac_header_preproc"
16226fi 18040fi
16227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16251,7 +18065,6 @@ else
16251echo "$as_me:$LINENO: checking $ac_header usability" >&5 18065echo "$as_me:$LINENO: checking $ac_header usability" >&5
16252echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16253cat >conftest.$ac_ext <<_ACEOF 18067cat >conftest.$ac_ext <<_ACEOF
16254#line $LINENO "configure"
16255/* confdefs.h. */ 18068/* confdefs.h. */
16256_ACEOF 18069_ACEOF
16257cat confdefs.h >>conftest.$ac_ext 18070cat confdefs.h >>conftest.$ac_ext
@@ -16262,11 +18075,21 @@ $ac_includes_default
16262_ACEOF 18075_ACEOF
16263rm -f conftest.$ac_objext 18076rm -f conftest.$ac_objext
16264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16265 (eval $ac_compile) 2>&5 18078 (eval $ac_compile) 2>conftest.er1
16266 ac_status=$? 18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } && 18084 (exit $ac_status); } &&
16269 { ac_try='test -s conftest.$ac_objext' 18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5 18094 (eval $ac_try) 2>&5
16272 ac_status=$? 18095 ac_status=$?
@@ -16279,7 +18102,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16279 18102
16280ac_header_compiler=no 18103ac_header_compiler=no
16281fi 18104fi
16282rm -f conftest.$ac_objext conftest.$ac_ext 18105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16284echo "${ECHO_T}$ac_header_compiler" >&6 18107echo "${ECHO_T}$ac_header_compiler" >&6
16285 18108
@@ -16287,7 +18110,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16287echo "$as_me:$LINENO: checking $ac_header presence" >&5 18110echo "$as_me:$LINENO: checking $ac_header presence" >&5
16288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16289cat >conftest.$ac_ext <<_ACEOF 18112cat >conftest.$ac_ext <<_ACEOF
16290#line $LINENO "configure"
16291/* confdefs.h. */ 18113/* confdefs.h. */
16292_ACEOF 18114_ACEOF
16293cat confdefs.h >>conftest.$ac_ext 18115cat confdefs.h >>conftest.$ac_ext
@@ -16305,6 +18127,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16305 (exit $ac_status); } >/dev/null; then 18127 (exit $ac_status); } >/dev/null; then
16306 if test -s conftest.err; then 18128 if test -s conftest.err; then
16307 ac_cpp_err=$ac_c_preproc_warn_flag 18129 ac_cpp_err=$ac_c_preproc_warn_flag
18130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16308 else 18131 else
16309 ac_cpp_err= 18132 ac_cpp_err=
16310 fi 18133 fi
@@ -16324,33 +18147,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16324echo "${ECHO_T}$ac_header_preproc" >&6 18147echo "${ECHO_T}$ac_header_preproc" >&6
16325 18148
16326# So? What about this header? 18149# So? What about this header?
16327case $ac_header_compiler:$ac_header_preproc in 18150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16328 yes:no ) 18151 yes:no: )
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16333 ( 18156 ac_header_preproc=yes
16334 cat <<\_ASBOX
16335## ------------------------------------ ##
16336## Report this to bug-autoconf@gnu.org. ##
16337## ------------------------------------ ##
16338_ASBOX
16339 ) |
16340 sed "s/^/$as_me: WARNING: /" >&2
16341 ;; 18157 ;;
16342 no:yes ) 18158 no:yes:* )
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16349 ( 18171 (
16350 cat <<\_ASBOX 18172 cat <<\_ASBOX
16351## ------------------------------------ ## 18173## ------------------------------------------ ##
16352## Report this to bug-autoconf@gnu.org. ## 18174## Report this to the AC_PACKAGE_NAME lists. ##
16353## ------------------------------------ ## 18175## ------------------------------------------ ##
16354_ASBOX 18176_ASBOX
16355 ) | 18177 ) |
16356 sed "s/^/$as_me: WARNING: /" >&2 18178 sed "s/^/$as_me: WARNING: /" >&2
@@ -16361,7 +18183,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16361if eval "test \"\${$as_ac_Header+set}\" = set"; then 18183if eval "test \"\${$as_ac_Header+set}\" = set"; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6 18184 echo $ECHO_N "(cached) $ECHO_C" >&6
16363else 18185else
16364 eval "$as_ac_Header=$ac_header_preproc" 18186 eval "$as_ac_Header=\$ac_header_preproc"
16365fi 18187fi
16366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16390,7 +18212,6 @@ else
16390echo "$as_me:$LINENO: checking $ac_header usability" >&5 18212echo "$as_me:$LINENO: checking $ac_header usability" >&5
16391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18213echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16392cat >conftest.$ac_ext <<_ACEOF 18214cat >conftest.$ac_ext <<_ACEOF
16393#line $LINENO "configure"
16394/* confdefs.h. */ 18215/* confdefs.h. */
16395_ACEOF 18216_ACEOF
16396cat confdefs.h >>conftest.$ac_ext 18217cat confdefs.h >>conftest.$ac_ext
@@ -16401,11 +18222,21 @@ $ac_includes_default
16401_ACEOF 18222_ACEOF
16402rm -f conftest.$ac_objext 18223rm -f conftest.$ac_objext
16403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16404 (eval $ac_compile) 2>&5 18225 (eval $ac_compile) 2>conftest.er1
16405 ac_status=$? 18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && 18231 (exit $ac_status); } &&
16408 { ac_try='test -s conftest.$ac_objext' 18232 { ac_try='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5 18241 (eval $ac_try) 2>&5
16411 ac_status=$? 18242 ac_status=$?
@@ -16418,7 +18249,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16418 18249
16419ac_header_compiler=no 18250ac_header_compiler=no
16420fi 18251fi
16421rm -f conftest.$ac_objext conftest.$ac_ext 18252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16423echo "${ECHO_T}$ac_header_compiler" >&6 18254echo "${ECHO_T}$ac_header_compiler" >&6
16424 18255
@@ -16426,7 +18257,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16426echo "$as_me:$LINENO: checking $ac_header presence" >&5 18257echo "$as_me:$LINENO: checking $ac_header presence" >&5
16427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16428cat >conftest.$ac_ext <<_ACEOF 18259cat >conftest.$ac_ext <<_ACEOF
16429#line $LINENO "configure"
16430/* confdefs.h. */ 18260/* confdefs.h. */
16431_ACEOF 18261_ACEOF
16432cat confdefs.h >>conftest.$ac_ext 18262cat confdefs.h >>conftest.$ac_ext
@@ -16444,6 +18274,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16444 (exit $ac_status); } >/dev/null; then 18274 (exit $ac_status); } >/dev/null; then
16445 if test -s conftest.err; then 18275 if test -s conftest.err; then
16446 ac_cpp_err=$ac_c_preproc_warn_flag 18276 ac_cpp_err=$ac_c_preproc_warn_flag
18277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16447 else 18278 else
16448 ac_cpp_err= 18279 ac_cpp_err=
16449 fi 18280 fi
@@ -16463,33 +18294,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463echo "${ECHO_T}$ac_header_preproc" >&6 18294echo "${ECHO_T}$ac_header_preproc" >&6
16464 18295
16465# So? What about this header? 18296# So? What about this header?
16466case $ac_header_compiler:$ac_header_preproc in 18297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16467 yes:no ) 18298 yes:no: )
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16472 ( 18303 ac_header_preproc=yes
16473 cat <<\_ASBOX
16474## ------------------------------------ ##
16475## Report this to bug-autoconf@gnu.org. ##
16476## ------------------------------------ ##
16477_ASBOX
16478 ) |
16479 sed "s/^/$as_me: WARNING: /" >&2
16480 ;; 18304 ;;
16481 no:yes ) 18305 no:yes:* )
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16488 ( 18318 (
16489 cat <<\_ASBOX 18319 cat <<\_ASBOX
16490## ------------------------------------ ## 18320## ------------------------------------------ ##
16491## Report this to bug-autoconf@gnu.org. ## 18321## Report this to the AC_PACKAGE_NAME lists. ##
16492## ------------------------------------ ## 18322## ------------------------------------------ ##
16493_ASBOX 18323_ASBOX
16494 ) | 18324 ) |
16495 sed "s/^/$as_me: WARNING: /" >&2 18325 sed "s/^/$as_me: WARNING: /" >&2
@@ -16500,7 +18330,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16500if eval "test \"\${$as_ac_Header+set}\" = set"; then 18330if eval "test \"\${$as_ac_Header+set}\" = set"; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6 18331 echo $ECHO_N "(cached) $ECHO_C" >&6
16502else 18332else
16503 eval "$as_ac_Header=$ac_header_preproc" 18333 eval "$as_ac_Header=\$ac_header_preproc"
16504fi 18334fi
16505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16540,7 +18370,6 @@ else
16540echo "$as_me:$LINENO: checking $ac_header usability" >&5 18370echo "$as_me:$LINENO: checking $ac_header usability" >&5
16541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16542cat >conftest.$ac_ext <<_ACEOF 18372cat >conftest.$ac_ext <<_ACEOF
16543#line $LINENO "configure"
16544/* confdefs.h. */ 18373/* confdefs.h. */
16545_ACEOF 18374_ACEOF
16546cat confdefs.h >>conftest.$ac_ext 18375cat confdefs.h >>conftest.$ac_ext
@@ -16551,11 +18380,21 @@ $ac_includes_default
16551_ACEOF 18380_ACEOF
16552rm -f conftest.$ac_objext 18381rm -f conftest.$ac_objext
16553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>&5 18383 (eval $ac_compile) 2>conftest.er1
16555 ac_status=$? 18384 ac_status=$?
18385 grep -v '^ *+' conftest.er1 >conftest.err
18386 rm -f conftest.er1
18387 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && 18389 (exit $ac_status); } &&
16558 { ac_try='test -s conftest.$ac_objext' 18390 { ac_try='test -z "$ac_c_werror_flag"
18391 || test ! -s conftest.err'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5 18399 (eval $ac_try) 2>&5
16561 ac_status=$? 18400 ac_status=$?
@@ -16568,7 +18407,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16568 18407
16569ac_header_compiler=no 18408ac_header_compiler=no
16570fi 18409fi
16571rm -f conftest.$ac_objext conftest.$ac_ext 18410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16573echo "${ECHO_T}$ac_header_compiler" >&6 18412echo "${ECHO_T}$ac_header_compiler" >&6
16574 18413
@@ -16576,7 +18415,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16576echo "$as_me:$LINENO: checking $ac_header presence" >&5 18415echo "$as_me:$LINENO: checking $ac_header presence" >&5
16577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16578cat >conftest.$ac_ext <<_ACEOF 18417cat >conftest.$ac_ext <<_ACEOF
16579#line $LINENO "configure"
16580/* confdefs.h. */ 18418/* confdefs.h. */
16581_ACEOF 18419_ACEOF
16582cat confdefs.h >>conftest.$ac_ext 18420cat confdefs.h >>conftest.$ac_ext
@@ -16594,6 +18432,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16594 (exit $ac_status); } >/dev/null; then 18432 (exit $ac_status); } >/dev/null; then
16595 if test -s conftest.err; then 18433 if test -s conftest.err; then
16596 ac_cpp_err=$ac_c_preproc_warn_flag 18434 ac_cpp_err=$ac_c_preproc_warn_flag
18435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16597 else 18436 else
16598 ac_cpp_err= 18437 ac_cpp_err=
16599 fi 18438 fi
@@ -16613,33 +18452,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16613echo "${ECHO_T}$ac_header_preproc" >&6 18452echo "${ECHO_T}$ac_header_preproc" >&6
16614 18453
16615# So? What about this header? 18454# So? What about this header?
16616case $ac_header_compiler:$ac_header_preproc in 18455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16617 yes:no ) 18456 yes:no: )
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18460echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16622 ( 18461 ac_header_preproc=yes
16623 cat <<\_ASBOX
16624## ------------------------------------ ##
16625## Report this to bug-autoconf@gnu.org. ##
16626## ------------------------------------ ##
16627_ASBOX
16628 ) |
16629 sed "s/^/$as_me: WARNING: /" >&2
16630 ;; 18462 ;;
16631 no:yes ) 18463 no:yes:* )
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18465echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18467echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18469echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18471echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18473echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18475echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16638 ( 18476 (
16639 cat <<\_ASBOX 18477 cat <<\_ASBOX
16640## ------------------------------------ ## 18478## ------------------------------------------ ##
16641## Report this to bug-autoconf@gnu.org. ## 18479## Report this to the AC_PACKAGE_NAME lists. ##
16642## ------------------------------------ ## 18480## ------------------------------------------ ##
16643_ASBOX 18481_ASBOX
16644 ) | 18482 ) |
16645 sed "s/^/$as_me: WARNING: /" >&2 18483 sed "s/^/$as_me: WARNING: /" >&2
@@ -16650,7 +18488,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16650if eval "test \"\${$as_ac_Header+set}\" = set"; then 18488if eval "test \"\${$as_ac_Header+set}\" = set"; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6 18489 echo $ECHO_N "(cached) $ECHO_C" >&6
16652else 18490else
16653 eval "$as_ac_Header=$ac_header_preproc" 18491 eval "$as_ac_Header=\$ac_header_preproc"
16654fi 18492fi
16655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16679,7 +18517,6 @@ else
16679echo "$as_me:$LINENO: checking $ac_header usability" >&5 18517echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16681cat >conftest.$ac_ext <<_ACEOF 18519cat >conftest.$ac_ext <<_ACEOF
16682#line $LINENO "configure"
16683/* confdefs.h. */ 18520/* confdefs.h. */
16684_ACEOF 18521_ACEOF
16685cat confdefs.h >>conftest.$ac_ext 18522cat confdefs.h >>conftest.$ac_ext
@@ -16690,11 +18527,21 @@ $ac_includes_default
16690_ACEOF 18527_ACEOF
16691rm -f conftest.$ac_objext 18528rm -f conftest.$ac_objext
16692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16693 (eval $ac_compile) 2>&5 18530 (eval $ac_compile) 2>conftest.er1
16694 ac_status=$? 18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && 18536 (exit $ac_status); } &&
16697 { ac_try='test -s conftest.$ac_objext' 18537 { ac_try='test -z "$ac_c_werror_flag"
18538 || test ! -s conftest.err'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest.$ac_objext'
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5 18546 (eval $ac_try) 2>&5
16700 ac_status=$? 18547 ac_status=$?
@@ -16707,7 +18554,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16707 18554
16708ac_header_compiler=no 18555ac_header_compiler=no
16709fi 18556fi
16710rm -f conftest.$ac_objext conftest.$ac_ext 18557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16712echo "${ECHO_T}$ac_header_compiler" >&6 18559echo "${ECHO_T}$ac_header_compiler" >&6
16713 18560
@@ -16715,7 +18562,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16715echo "$as_me:$LINENO: checking $ac_header presence" >&5 18562echo "$as_me:$LINENO: checking $ac_header presence" >&5
16716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16717cat >conftest.$ac_ext <<_ACEOF 18564cat >conftest.$ac_ext <<_ACEOF
16718#line $LINENO "configure"
16719/* confdefs.h. */ 18565/* confdefs.h. */
16720_ACEOF 18566_ACEOF
16721cat confdefs.h >>conftest.$ac_ext 18567cat confdefs.h >>conftest.$ac_ext
@@ -16733,6 +18579,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16733 (exit $ac_status); } >/dev/null; then 18579 (exit $ac_status); } >/dev/null; then
16734 if test -s conftest.err; then 18580 if test -s conftest.err; then
16735 ac_cpp_err=$ac_c_preproc_warn_flag 18581 ac_cpp_err=$ac_c_preproc_warn_flag
18582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16736 else 18583 else
16737 ac_cpp_err= 18584 ac_cpp_err=
16738 fi 18585 fi
@@ -16752,33 +18599,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16752echo "${ECHO_T}$ac_header_preproc" >&6 18599echo "${ECHO_T}$ac_header_preproc" >&6
16753 18600
16754# So? What about this header? 18601# So? What about this header?
16755case $ac_header_compiler:$ac_header_preproc in 18602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16756 yes:no ) 18603 yes:no: )
16757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16761 ( 18608 ac_header_preproc=yes
16762 cat <<\_ASBOX
16763## ------------------------------------ ##
16764## Report this to bug-autoconf@gnu.org. ##
16765## ------------------------------------ ##
16766_ASBOX
16767 ) |
16768 sed "s/^/$as_me: WARNING: /" >&2
16769 ;; 18609 ;;
16770 no:yes ) 18610 no:yes:* )
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16777 ( 18623 (
16778 cat <<\_ASBOX 18624 cat <<\_ASBOX
16779## ------------------------------------ ## 18625## ------------------------------------------ ##
16780## Report this to bug-autoconf@gnu.org. ## 18626## Report this to the AC_PACKAGE_NAME lists. ##
16781## ------------------------------------ ## 18627## ------------------------------------------ ##
16782_ASBOX 18628_ASBOX
16783 ) | 18629 ) |
16784 sed "s/^/$as_me: WARNING: /" >&2 18630 sed "s/^/$as_me: WARNING: /" >&2
@@ -16789,7 +18635,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16789if eval "test \"\${$as_ac_Header+set}\" = set"; then 18635if eval "test \"\${$as_ac_Header+set}\" = set"; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6 18636 echo $ECHO_N "(cached) $ECHO_C" >&6
16791else 18637else
16792 eval "$as_ac_Header=$ac_header_preproc" 18638 eval "$as_ac_Header=\$ac_header_preproc"
16793fi 18639fi
16794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16818,7 +18664,6 @@ else
16818echo "$as_me:$LINENO: checking $ac_header usability" >&5 18664echo "$as_me:$LINENO: checking $ac_header usability" >&5
16819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16820cat >conftest.$ac_ext <<_ACEOF 18666cat >conftest.$ac_ext <<_ACEOF
16821#line $LINENO "configure"
16822/* confdefs.h. */ 18667/* confdefs.h. */
16823_ACEOF 18668_ACEOF
16824cat confdefs.h >>conftest.$ac_ext 18669cat confdefs.h >>conftest.$ac_ext
@@ -16829,11 +18674,21 @@ $ac_includes_default
16829_ACEOF 18674_ACEOF
16830rm -f conftest.$ac_objext 18675rm -f conftest.$ac_objext
16831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>&5 18677 (eval $ac_compile) 2>conftest.er1
16833 ac_status=$? 18678 ac_status=$?
18679 grep -v '^ *+' conftest.er1 >conftest.err
18680 rm -f conftest.er1
18681 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } && 18683 (exit $ac_status); } &&
16836 { ac_try='test -s conftest.$ac_objext' 18684 { ac_try='test -z "$ac_c_werror_flag"
18685 || test ! -s conftest.err'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5 18693 (eval $ac_try) 2>&5
16839 ac_status=$? 18694 ac_status=$?
@@ -16846,7 +18701,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16846 18701
16847ac_header_compiler=no 18702ac_header_compiler=no
16848fi 18703fi
16849rm -f conftest.$ac_objext conftest.$ac_ext 18704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16851echo "${ECHO_T}$ac_header_compiler" >&6 18706echo "${ECHO_T}$ac_header_compiler" >&6
16852 18707
@@ -16854,7 +18709,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
16854echo "$as_me:$LINENO: checking $ac_header presence" >&5 18709echo "$as_me:$LINENO: checking $ac_header presence" >&5
16855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16856cat >conftest.$ac_ext <<_ACEOF 18711cat >conftest.$ac_ext <<_ACEOF
16857#line $LINENO "configure"
16858/* confdefs.h. */ 18712/* confdefs.h. */
16859_ACEOF 18713_ACEOF
16860cat confdefs.h >>conftest.$ac_ext 18714cat confdefs.h >>conftest.$ac_ext
@@ -16872,6 +18726,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16872 (exit $ac_status); } >/dev/null; then 18726 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then 18727 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag 18728 ac_cpp_err=$ac_c_preproc_warn_flag
18729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16875 else 18730 else
16876 ac_cpp_err= 18731 ac_cpp_err=
16877 fi 18732 fi
@@ -16891,33 +18746,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16891echo "${ECHO_T}$ac_header_preproc" >&6 18746echo "${ECHO_T}$ac_header_preproc" >&6
16892 18747
16893# So? What about this header? 18748# So? What about this header?
16894case $ac_header_compiler:$ac_header_preproc in 18749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16895 yes:no ) 18750 yes:no: )
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16900 ( 18755 ac_header_preproc=yes
16901 cat <<\_ASBOX
16902## ------------------------------------ ##
16903## Report this to bug-autoconf@gnu.org. ##
16904## ------------------------------------ ##
16905_ASBOX
16906 ) |
16907 sed "s/^/$as_me: WARNING: /" >&2
16908 ;; 18756 ;;
16909 no:yes ) 18757 no:yes:* )
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16916 ( 18770 (
16917 cat <<\_ASBOX 18771 cat <<\_ASBOX
16918## ------------------------------------ ## 18772## ------------------------------------------ ##
16919## Report this to bug-autoconf@gnu.org. ## 18773## Report this to the AC_PACKAGE_NAME lists. ##
16920## ------------------------------------ ## 18774## ------------------------------------------ ##
16921_ASBOX 18775_ASBOX
16922 ) | 18776 ) |
16923 sed "s/^/$as_me: WARNING: /" >&2 18777 sed "s/^/$as_me: WARNING: /" >&2
@@ -16928,7 +18782,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16928if eval "test \"\${$as_ac_Header+set}\" = set"; then 18782if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6 18783 echo $ECHO_N "(cached) $ECHO_C" >&6
16930else 18784else
16931 eval "$as_ac_Header=$ac_header_preproc" 18785 eval "$as_ac_Header=\$ac_header_preproc"
16932fi 18786fi
16933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -16969,7 +18823,6 @@ else
16969echo "$as_me:$LINENO: checking $ac_header usability" >&5 18823echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18824echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16971cat >conftest.$ac_ext <<_ACEOF 18825cat >conftest.$ac_ext <<_ACEOF
16972#line $LINENO "configure"
16973/* confdefs.h. */ 18826/* confdefs.h. */
16974_ACEOF 18827_ACEOF
16975cat confdefs.h >>conftest.$ac_ext 18828cat confdefs.h >>conftest.$ac_ext
@@ -16980,11 +18833,21 @@ $ac_includes_default
16980_ACEOF 18833_ACEOF
16981rm -f conftest.$ac_objext 18834rm -f conftest.$ac_objext
16982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16983 (eval $ac_compile) 2>&5 18836 (eval $ac_compile) 2>conftest.er1
16984 ac_status=$? 18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } && 18842 (exit $ac_status); } &&
16987 { ac_try='test -s conftest.$ac_objext' 18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
16988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989 (eval $ac_try) 2>&5 18852 (eval $ac_try) 2>&5
16990 ac_status=$? 18853 ac_status=$?
@@ -16997,7 +18860,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
16997 18860
16998ac_header_compiler=no 18861ac_header_compiler=no
16999fi 18862fi
17000rm -f conftest.$ac_objext conftest.$ac_ext 18863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17002echo "${ECHO_T}$ac_header_compiler" >&6 18865echo "${ECHO_T}$ac_header_compiler" >&6
17003 18866
@@ -17005,7 +18868,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
17005echo "$as_me:$LINENO: checking $ac_header presence" >&5 18868echo "$as_me:$LINENO: checking $ac_header presence" >&5
17006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17007cat >conftest.$ac_ext <<_ACEOF 18870cat >conftest.$ac_ext <<_ACEOF
17008#line $LINENO "configure"
17009/* confdefs.h. */ 18871/* confdefs.h. */
17010_ACEOF 18872_ACEOF
17011cat confdefs.h >>conftest.$ac_ext 18873cat confdefs.h >>conftest.$ac_ext
@@ -17023,6 +18885,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17023 (exit $ac_status); } >/dev/null; then 18885 (exit $ac_status); } >/dev/null; then
17024 if test -s conftest.err; then 18886 if test -s conftest.err; then
17025 ac_cpp_err=$ac_c_preproc_warn_flag 18887 ac_cpp_err=$ac_c_preproc_warn_flag
18888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17026 else 18889 else
17027 ac_cpp_err= 18890 ac_cpp_err=
17028 fi 18891 fi
@@ -17042,33 +18905,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17042echo "${ECHO_T}$ac_header_preproc" >&6 18905echo "${ECHO_T}$ac_header_preproc" >&6
17043 18906
17044# So? What about this header? 18907# So? What about this header?
17045case $ac_header_compiler:$ac_header_preproc in 18908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17046 yes:no ) 18909 yes:no: )
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17051 ( 18914 ac_header_preproc=yes
17052 cat <<\_ASBOX
17053## ------------------------------------ ##
17054## Report this to bug-autoconf@gnu.org. ##
17055## ------------------------------------ ##
17056_ASBOX
17057 ) |
17058 sed "s/^/$as_me: WARNING: /" >&2
17059 ;; 18915 ;;
17060 no:yes ) 18916 no:yes:* )
17061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17067 ( 18929 (
17068 cat <<\_ASBOX 18930 cat <<\_ASBOX
17069## ------------------------------------ ## 18931## ------------------------------------------ ##
17070## Report this to bug-autoconf@gnu.org. ## 18932## Report this to the AC_PACKAGE_NAME lists. ##
17071## ------------------------------------ ## 18933## ------------------------------------------ ##
17072_ASBOX 18934_ASBOX
17073 ) | 18935 ) |
17074 sed "s/^/$as_me: WARNING: /" >&2 18936 sed "s/^/$as_me: WARNING: /" >&2
@@ -17079,7 +18941,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17079if eval "test \"\${$as_ac_Header+set}\" = set"; then 18941if eval "test \"\${$as_ac_Header+set}\" = set"; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6 18942 echo $ECHO_N "(cached) $ECHO_C" >&6
17081else 18943else
17082 eval "$as_ac_Header=$ac_header_preproc" 18944 eval "$as_ac_Header=\$ac_header_preproc"
17083fi 18945fi
17084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -17107,7 +18969,6 @@ else
17107 ac_check_lib_save_LIBS=$LIBS 18969 ac_check_lib_save_LIBS=$LIBS
17108LIBS="-lintl $LIBS" 18970LIBS="-lintl $LIBS"
17109cat >conftest.$ac_ext <<_ACEOF 18971cat >conftest.$ac_ext <<_ACEOF
17110#line $LINENO "configure"
17111/* confdefs.h. */ 18972/* confdefs.h. */
17112_ACEOF 18973_ACEOF
17113cat confdefs.h >>conftest.$ac_ext 18974cat confdefs.h >>conftest.$ac_ext
@@ -17131,11 +18992,21 @@ dgettext ();
17131_ACEOF 18992_ACEOF
17132rm -f conftest.$ac_objext conftest$ac_exeext 18993rm -f conftest.$ac_objext conftest$ac_exeext
17133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5 18995 (eval $ac_link) 2>conftest.er1
17135 ac_status=$? 18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && 19001 (exit $ac_status); } &&
17138 { ac_try='test -s conftest$ac_exeext' 19002 { ac_try='test -z "$ac_c_werror_flag"
19003 || test ! -s conftest.err'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; } &&
19009 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5 19011 (eval $ac_try) 2>&5
17141 ac_status=$? 19012 ac_status=$?
@@ -17148,7 +19019,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
17148 19019
17149ac_cv_lib_intl_dgettext=no 19020ac_cv_lib_intl_dgettext=no
17150fi 19021fi
17151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19022rm -f conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
17152LIBS=$ac_check_lib_save_LIBS 19024LIBS=$ac_check_lib_save_LIBS
17153fi 19025fi
17154echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 19026echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
@@ -17174,7 +19046,6 @@ if test "$cross_compiling" = yes; then
17174emacs_cv_localtime_cache=yes 19046emacs_cv_localtime_cache=yes
17175else 19047else
17176 cat >conftest.$ac_ext <<_ACEOF 19048 cat >conftest.$ac_ext <<_ACEOF
17177#line $LINENO "configure"
17178/* confdefs.h. */ 19049/* confdefs.h. */
17179_ACEOF 19050_ACEOF
17180cat confdefs.h >>conftest.$ac_ext 19051cat confdefs.h >>conftest.$ac_ext
@@ -17230,7 +19101,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17230( exit $ac_status ) 19101( exit $ac_status )
17231emacs_cv_localtime_cache=yes 19102emacs_cv_localtime_cache=yes
17232fi 19103fi
17233rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17234fi 19105fi
17235else 19106else
17236 # If we lack tzset, report that localtime does not cache TZ, 19107 # If we lack tzset, report that localtime does not cache TZ,
@@ -17259,21 +19130,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6 19130 echo $ECHO_N "(cached) $ECHO_C" >&6
17260else 19131else
17261 cat >conftest.$ac_ext <<_ACEOF 19132 cat >conftest.$ac_ext <<_ACEOF
17262#line $LINENO "configure"
17263/* confdefs.h. */ 19133/* confdefs.h. */
17264_ACEOF 19134_ACEOF
17265cat confdefs.h >>conftest.$ac_ext 19135cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF 19136cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h. */ 19137/* end confdefs.h. */
19138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140#define $ac_func innocuous_$ac_func
19141
17268/* System header to define __stub macros and hopefully few prototypes, 19142/* System header to define __stub macros and hopefully few prototypes,
17269 which can conflict with char $ac_func (); below. 19143 which can conflict with char $ac_func (); below.
17270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17271 <limits.h> exists even on freestanding compilers. */ 19145 <limits.h> exists even on freestanding compilers. */
19146
17272#ifdef __STDC__ 19147#ifdef __STDC__
17273# include <limits.h> 19148# include <limits.h>
17274#else 19149#else
17275# include <assert.h> 19150# include <assert.h>
17276#endif 19151#endif
19152
19153#undef $ac_func
19154
17277/* Override any gcc2 internal prototype to avoid an error. */ 19155/* Override any gcc2 internal prototype to avoid an error. */
17278#ifdef __cplusplus 19156#ifdef __cplusplus
17279extern "C" 19157extern "C"
@@ -17304,11 +19182,21 @@ return f != $ac_func;
17304_ACEOF 19182_ACEOF
17305rm -f conftest.$ac_objext conftest$ac_exeext 19183rm -f conftest.$ac_objext conftest$ac_exeext
17306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>&5 19185 (eval $ac_link) 2>conftest.er1
17308 ac_status=$? 19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && 19191 (exit $ac_status); } &&
17311 { ac_try='test -s conftest$ac_exeext' 19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest$ac_exeext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5 19201 (eval $ac_try) 2>&5
17314 ac_status=$? 19202 ac_status=$?
@@ -17321,7 +19209,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
17321 19209
17322eval "$as_ac_var=no" 19210eval "$as_ac_var=no"
17323fi 19211fi
17324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19212rm -f conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
17325fi 19214fi
17326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -17340,7 +19229,6 @@ if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6 19229 echo $ECHO_N "(cached) $ECHO_C" >&6
17341else 19230else
17342 cat >conftest.$ac_ext <<_ACEOF 19231 cat >conftest.$ac_ext <<_ACEOF
17343#line $LINENO "configure"
17344/* confdefs.h. */ 19232/* confdefs.h. */
17345_ACEOF 19233_ACEOF
17346cat confdefs.h >>conftest.$ac_ext 19234cat confdefs.h >>conftest.$ac_ext
@@ -17368,11 +19256,21 @@ struct timeval time;
17368_ACEOF 19256_ACEOF
17369rm -f conftest.$ac_objext 19257rm -f conftest.$ac_objext
17370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17371 (eval $ac_compile) 2>&5 19259 (eval $ac_compile) 2>conftest.er1
17372 ac_status=$? 19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && 19265 (exit $ac_status); } &&
17375 { ac_try='test -s conftest.$ac_objext' 19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5 19275 (eval $ac_try) 2>&5
17378 ac_status=$? 19276 ac_status=$?
@@ -17385,7 +19283,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17385 19283
17386emacs_cv_gettimeofday_two_arguments=no 19284emacs_cv_gettimeofday_two_arguments=no
17387fi 19285fi
17388rm -f conftest.$ac_objext conftest.$ac_ext 19286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17389fi 19287fi
17390echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 19288echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
17391echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 19289echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
@@ -17406,7 +19304,6 @@ if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6 19304 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else 19305else
17408 cat >conftest.$ac_ext <<_ACEOF 19306 cat >conftest.$ac_ext <<_ACEOF
17409#line $LINENO "configure"
17410/* confdefs.h. */ 19307/* confdefs.h. */
17411_ACEOF 19308_ACEOF
17412cat confdefs.h >>conftest.$ac_ext 19309cat confdefs.h >>conftest.$ac_ext
@@ -17428,11 +19325,21 @@ return 0;
17428_ACEOF 19325_ACEOF
17429rm -f conftest.$ac_objext 19326rm -f conftest.$ac_objext
17430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>&5 19328 (eval $ac_compile) 2>conftest.er1
17432 ac_status=$? 19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } && 19334 (exit $ac_status); } &&
17435 { ac_try='test -s conftest.$ac_objext' 19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5 19344 (eval $ac_try) 2>&5
17438 ac_status=$? 19345 ac_status=$?
@@ -17444,7 +19351,6 @@ else
17444sed 's/^/| /' conftest.$ac_ext >&5 19351sed 's/^/| /' conftest.$ac_ext >&5
17445 19352
17446cat >conftest.$ac_ext <<_ACEOF 19353cat >conftest.$ac_ext <<_ACEOF
17447#line $LINENO "configure"
17448/* confdefs.h. */ 19354/* confdefs.h. */
17449_ACEOF 19355_ACEOF
17450cat confdefs.h >>conftest.$ac_ext 19356cat confdefs.h >>conftest.$ac_ext
@@ -17466,11 +19372,21 @@ return 0;
17466_ACEOF 19372_ACEOF
17467rm -f conftest.$ac_objext 19373rm -f conftest.$ac_objext
17468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469 (eval $ac_compile) 2>&5 19375 (eval $ac_compile) 2>conftest.er1
17470 ac_status=$? 19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && 19381 (exit $ac_status); } &&
17473 { ac_try='test -s conftest.$ac_objext' 19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5 19391 (eval $ac_try) 2>&5
17476 ac_status=$? 19392 ac_status=$?
@@ -17483,9 +19399,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
17483 19399
17484ac_cv_member_struct_tm_tm_zone=no 19400ac_cv_member_struct_tm_tm_zone=no
17485fi 19401fi
17486rm -f conftest.$ac_objext conftest.$ac_ext 19402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17487fi 19403fi
17488rm -f conftest.$ac_objext conftest.$ac_ext 19404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489fi 19405fi
17490echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 19406echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17491echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 19407echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
@@ -17511,7 +19427,6 @@ if test "${ac_cv_var_tzname+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6 19427 echo $ECHO_N "(cached) $ECHO_C" >&6
17512else 19428else
17513 cat >conftest.$ac_ext <<_ACEOF 19429 cat >conftest.$ac_ext <<_ACEOF
17514#line $LINENO "configure"
17515/* confdefs.h. */ 19430/* confdefs.h. */
17516_ACEOF 19431_ACEOF
17517cat confdefs.h >>conftest.$ac_ext 19432cat confdefs.h >>conftest.$ac_ext
@@ -17532,11 +19447,21 @@ atoi(*tzname);
17532_ACEOF 19447_ACEOF
17533rm -f conftest.$ac_objext conftest$ac_exeext 19448rm -f conftest.$ac_objext conftest$ac_exeext
17534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17535 (eval $ac_link) 2>&5 19450 (eval $ac_link) 2>conftest.er1
17536 ac_status=$? 19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && 19456 (exit $ac_status); } &&
17539 { ac_try='test -s conftest$ac_exeext' 19457 { ac_try='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5 19466 (eval $ac_try) 2>&5
17542 ac_status=$? 19467 ac_status=$?
@@ -17549,7 +19474,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
17549 19474
17550ac_cv_var_tzname=no 19475ac_cv_var_tzname=no
17551fi 19476fi
17552rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19477rm -f conftest.err conftest.$ac_objext \
19478 conftest$ac_exeext conftest.$ac_ext
17553fi 19479fi
17554echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 19480echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17555echo "${ECHO_T}$ac_cv_var_tzname" >&6 19481echo "${ECHO_T}$ac_cv_var_tzname" >&6
@@ -17570,7 +19496,6 @@ if test "${emacs_cv_struct_timezone+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6 19496 echo $ECHO_N "(cached) $ECHO_C" >&6
17571else 19497else
17572 cat >conftest.$ac_ext <<_ACEOF 19498 cat >conftest.$ac_ext <<_ACEOF
17573#line $LINENO "configure"
17574/* confdefs.h. */ 19499/* confdefs.h. */
17575_ACEOF 19500_ACEOF
17576cat confdefs.h >>conftest.$ac_ext 19501cat confdefs.h >>conftest.$ac_ext
@@ -17587,11 +19512,21 @@ struct timezone tz;
17587_ACEOF 19512_ACEOF
17588rm -f conftest.$ac_objext 19513rm -f conftest.$ac_objext
17589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17590 (eval $ac_compile) 2>&5 19515 (eval $ac_compile) 2>conftest.er1
17591 ac_status=$? 19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } && 19521 (exit $ac_status); } &&
17594 { ac_try='test -s conftest.$ac_objext' 19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5 19531 (eval $ac_try) 2>&5
17597 ac_status=$? 19532 ac_status=$?
@@ -17601,7 +19536,6 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17601 emacs_cv_struct_timezone=yes 19536 emacs_cv_struct_timezone=yes
17602else 19537else
17603 cat >conftest.$ac_ext <<_ACEOF 19538 cat >conftest.$ac_ext <<_ACEOF
17604#line $LINENO "configure"
17605/* confdefs.h. */ 19539/* confdefs.h. */
17606_ACEOF 19540_ACEOF
17607cat confdefs.h >>conftest.$ac_ext 19541cat confdefs.h >>conftest.$ac_ext
@@ -17644,7 +19578,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17644( exit $ac_status ) 19578( exit $ac_status )
17645emacs_cv_struct_timezone=no 19579emacs_cv_struct_timezone=no
17646fi 19580fi
17647rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17648fi 19582fi
17649else 19583else
17650 echo "$as_me: failed program was:" >&5 19584 echo "$as_me: failed program was:" >&5
@@ -17652,7 +19586,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17652 19586
17653emacs_cv_struct_timezone=no 19587emacs_cv_struct_timezone=no
17654fi 19588fi
17655rm -f conftest.$ac_objext conftest.$ac_ext 19589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17656fi 19590fi
17657echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5 19591echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
17658echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 19592echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
@@ -17665,21 +19599,28 @@ if test "${ac_cv_func_socket+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6 19599 echo $ECHO_N "(cached) $ECHO_C" >&6
17666else 19600else
17667 cat >conftest.$ac_ext <<_ACEOF 19601 cat >conftest.$ac_ext <<_ACEOF
17668#line $LINENO "configure"
17669/* confdefs.h. */ 19602/* confdefs.h. */
17670_ACEOF 19603_ACEOF
17671cat confdefs.h >>conftest.$ac_ext 19604cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF 19605cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h. */ 19606/* end confdefs.h. */
19607/* Define socket to an innocuous variant, in case <limits.h> declares socket.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609#define socket innocuous_socket
19610
17674/* System header to define __stub macros and hopefully few prototypes, 19611/* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char socket (); below. 19612 which can conflict with char socket (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */ 19614 <limits.h> exists even on freestanding compilers. */
19615
17678#ifdef __STDC__ 19616#ifdef __STDC__
17679# include <limits.h> 19617# include <limits.h>
17680#else 19618#else
17681# include <assert.h> 19619# include <assert.h>
17682#endif 19620#endif
19621
19622#undef socket
19623
17683/* Override any gcc2 internal prototype to avoid an error. */ 19624/* Override any gcc2 internal prototype to avoid an error. */
17684#ifdef __cplusplus 19625#ifdef __cplusplus
17685extern "C" 19626extern "C"
@@ -17710,11 +19651,21 @@ return f != socket;
17710_ACEOF 19651_ACEOF
17711rm -f conftest.$ac_objext conftest$ac_exeext 19652rm -f conftest.$ac_objext conftest$ac_exeext
17712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 (eval $ac_link) 2>&5 19654 (eval $ac_link) 2>conftest.er1
17714 ac_status=$? 19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } && 19660 (exit $ac_status); } &&
17717 { ac_try='test -s conftest$ac_exeext' 19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5 19670 (eval $ac_try) 2>&5
17720 ac_status=$? 19671 ac_status=$?
@@ -17727,7 +19678,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
17727 19678
17728ac_cv_func_socket=no 19679ac_cv_func_socket=no
17729fi 19680fi
17730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19681rm -f conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
17731fi 19683fi
17732echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 19684echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17733echo "${ECHO_T}$ac_cv_func_socket" >&6 19685echo "${ECHO_T}$ac_cv_func_socket" >&6
@@ -17751,7 +19703,6 @@ else
17751echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 19703echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17752echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6 19704echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17753cat >conftest.$ac_ext <<_ACEOF 19705cat >conftest.$ac_ext <<_ACEOF
17754#line $LINENO "configure"
17755/* confdefs.h. */ 19706/* confdefs.h. */
17756_ACEOF 19707_ACEOF
17757cat confdefs.h >>conftest.$ac_ext 19708cat confdefs.h >>conftest.$ac_ext
@@ -17762,11 +19713,21 @@ $ac_includes_default
17762_ACEOF 19713_ACEOF
17763rm -f conftest.$ac_objext 19714rm -f conftest.$ac_objext
17764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17765 (eval $ac_compile) 2>&5 19716 (eval $ac_compile) 2>conftest.er1
17766 ac_status=$? 19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } && 19722 (exit $ac_status); } &&
17769 { ac_try='test -s conftest.$ac_objext' 19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5 19732 (eval $ac_try) 2>&5
17772 ac_status=$? 19733 ac_status=$?
@@ -17779,7 +19740,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17779 19740
17780ac_header_compiler=no 19741ac_header_compiler=no
17781fi 19742fi
17782rm -f conftest.$ac_objext conftest.$ac_ext 19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17784echo "${ECHO_T}$ac_header_compiler" >&6 19745echo "${ECHO_T}$ac_header_compiler" >&6
17785 19746
@@ -17787,7 +19748,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
17787echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 19748echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17788echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6 19749echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17789cat >conftest.$ac_ext <<_ACEOF 19750cat >conftest.$ac_ext <<_ACEOF
17790#line $LINENO "configure"
17791/* confdefs.h. */ 19751/* confdefs.h. */
17792_ACEOF 19752_ACEOF
17793cat confdefs.h >>conftest.$ac_ext 19753cat confdefs.h >>conftest.$ac_ext
@@ -17805,6 +19765,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17805 (exit $ac_status); } >/dev/null; then 19765 (exit $ac_status); } >/dev/null; then
17806 if test -s conftest.err; then 19766 if test -s conftest.err; then
17807 ac_cpp_err=$ac_c_preproc_warn_flag 19767 ac_cpp_err=$ac_c_preproc_warn_flag
19768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17808 else 19769 else
17809 ac_cpp_err= 19770 ac_cpp_err=
17810 fi 19771 fi
@@ -17824,33 +19785,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17824echo "${ECHO_T}$ac_header_preproc" >&6 19785echo "${ECHO_T}$ac_header_preproc" >&6
17825 19786
17826# So? What about this header? 19787# So? What about this header?
17827case $ac_header_compiler:$ac_header_preproc in 19788case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17828 yes:no ) 19789 yes:no: )
17829 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 19790 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17830echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19791echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17831 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 19792 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
17832echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} 19793echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
17833 ( 19794 ac_header_preproc=yes
17834 cat <<\_ASBOX
17835## ------------------------------------ ##
17836## Report this to bug-autoconf@gnu.org. ##
17837## ------------------------------------ ##
17838_ASBOX
17839 ) |
17840 sed "s/^/$as_me: WARNING: /" >&2
17841 ;; 19795 ;;
17842 no:yes ) 19796 no:yes:* )
17843 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 19797 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17844echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} 19798echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 19799 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17846echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} 19800echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19801 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19802echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19804echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 19805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17848echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} 19806echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19808echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
17849 ( 19809 (
17850 cat <<\_ASBOX 19810 cat <<\_ASBOX
17851## ------------------------------------ ## 19811## ------------------------------------------ ##
17852## Report this to bug-autoconf@gnu.org. ## 19812## Report this to the AC_PACKAGE_NAME lists. ##
17853## ------------------------------------ ## 19813## ------------------------------------------ ##
17854_ASBOX 19814_ASBOX
17855 ) | 19815 ) |
17856 sed "s/^/$as_me: WARNING: /" >&2 19816 sed "s/^/$as_me: WARNING: /" >&2
@@ -17889,7 +19849,6 @@ else
17889echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 19849echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17890echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6 19850echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17891cat >conftest.$ac_ext <<_ACEOF 19851cat >conftest.$ac_ext <<_ACEOF
17892#line $LINENO "configure"
17893/* confdefs.h. */ 19852/* confdefs.h. */
17894_ACEOF 19853_ACEOF
17895cat confdefs.h >>conftest.$ac_ext 19854cat confdefs.h >>conftest.$ac_ext
@@ -17900,11 +19859,21 @@ $ac_includes_default
17900_ACEOF 19859_ACEOF
17901rm -f conftest.$ac_objext 19860rm -f conftest.$ac_objext
17902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>&5 19862 (eval $ac_compile) 2>conftest.er1
17904 ac_status=$? 19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } && 19868 (exit $ac_status); } &&
17907 { ac_try='test -s conftest.$ac_objext' 19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
17908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909 (eval $ac_try) 2>&5 19878 (eval $ac_try) 2>&5
17910 ac_status=$? 19879 ac_status=$?
@@ -17917,7 +19886,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
17917 19886
17918ac_header_compiler=no 19887ac_header_compiler=no
17919fi 19888fi
17920rm -f conftest.$ac_objext conftest.$ac_ext 19889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17922echo "${ECHO_T}$ac_header_compiler" >&6 19891echo "${ECHO_T}$ac_header_compiler" >&6
17923 19892
@@ -17925,7 +19894,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
17925echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 19894echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17926echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6 19895echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17927cat >conftest.$ac_ext <<_ACEOF 19896cat >conftest.$ac_ext <<_ACEOF
17928#line $LINENO "configure"
17929/* confdefs.h. */ 19897/* confdefs.h. */
17930_ACEOF 19898_ACEOF
17931cat confdefs.h >>conftest.$ac_ext 19899cat confdefs.h >>conftest.$ac_ext
@@ -17943,6 +19911,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17943 (exit $ac_status); } >/dev/null; then 19911 (exit $ac_status); } >/dev/null; then
17944 if test -s conftest.err; then 19912 if test -s conftest.err; then
17945 ac_cpp_err=$ac_c_preproc_warn_flag 19913 ac_cpp_err=$ac_c_preproc_warn_flag
19914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17946 else 19915 else
17947 ac_cpp_err= 19916 ac_cpp_err=
17948 fi 19917 fi
@@ -17962,33 +19931,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17962echo "${ECHO_T}$ac_header_preproc" >&6 19931echo "${ECHO_T}$ac_header_preproc" >&6
17963 19932
17964# So? What about this header? 19933# So? What about this header?
17965case $ac_header_compiler:$ac_header_preproc in 19934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17966 yes:no ) 19935 yes:no: )
17967 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 19936 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17968echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 19937echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 19938 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
17970echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} 19939echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
17971 ( 19940 ac_header_preproc=yes
17972 cat <<\_ASBOX
17973## ------------------------------------ ##
17974## Report this to bug-autoconf@gnu.org. ##
17975## ------------------------------------ ##
17976_ASBOX
17977 ) |
17978 sed "s/^/$as_me: WARNING: /" >&2
17979 ;; 19941 ;;
17980 no:yes ) 19942 no:yes:* )
17981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 19943 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17982echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} 19944echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 19945 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17984echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} 19946echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19948echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19950echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 19951 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17986echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} 19952echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19954echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
17987 ( 19955 (
17988 cat <<\_ASBOX 19956 cat <<\_ASBOX
17989## ------------------------------------ ## 19957## ------------------------------------------ ##
17990## Report this to bug-autoconf@gnu.org. ## 19958## Report this to the AC_PACKAGE_NAME lists. ##
17991## ------------------------------------ ## 19959## ------------------------------------------ ##
17992_ASBOX 19960_ASBOX
17993 ) | 19961 ) |
17994 sed "s/^/$as_me: WARNING: /" >&2 19962 sed "s/^/$as_me: WARNING: /" >&2
@@ -18022,8 +19990,7 @@ _ACEOF
18022fi 19990fi
18023 19991
18024 19992
18025 19993for ac_header in sys/ioctl.h
18026for ac_header in sys/ioctl.h net/if.h
18027do 19994do
18028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18029if eval "test \"\${$as_ac_Header+set}\" = set"; then 19996if eval "test \"\${$as_ac_Header+set}\" = set"; then
@@ -18039,7 +20006,6 @@ else
18039echo "$as_me:$LINENO: checking $ac_header usability" >&5 20006echo "$as_me:$LINENO: checking $ac_header usability" >&5
18040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18041cat >conftest.$ac_ext <<_ACEOF 20008cat >conftest.$ac_ext <<_ACEOF
18042#line $LINENO "configure"
18043/* confdefs.h. */ 20009/* confdefs.h. */
18044_ACEOF 20010_ACEOF
18045cat confdefs.h >>conftest.$ac_ext 20011cat confdefs.h >>conftest.$ac_ext
@@ -18050,11 +20016,21 @@ $ac_includes_default
18050_ACEOF 20016_ACEOF
18051rm -f conftest.$ac_objext 20017rm -f conftest.$ac_objext
18052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18053 (eval $ac_compile) 2>&5 20019 (eval $ac_compile) 2>conftest.er1
18054 ac_status=$? 20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } && 20025 (exit $ac_status); } &&
18057 { ac_try='test -s conftest.$ac_objext' 20026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5 20035 (eval $ac_try) 2>&5
18060 ac_status=$? 20036 ac_status=$?
@@ -18067,7 +20043,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18067 20043
18068ac_header_compiler=no 20044ac_header_compiler=no
18069fi 20045fi
18070rm -f conftest.$ac_objext conftest.$ac_ext 20046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072echo "${ECHO_T}$ac_header_compiler" >&6 20048echo "${ECHO_T}$ac_header_compiler" >&6
18073 20049
@@ -18075,7 +20051,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
18075echo "$as_me:$LINENO: checking $ac_header presence" >&5 20051echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20052echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077cat >conftest.$ac_ext <<_ACEOF 20053cat >conftest.$ac_ext <<_ACEOF
18078#line $LINENO "configure"
18079/* confdefs.h. */ 20054/* confdefs.h. */
18080_ACEOF 20055_ACEOF
18081cat confdefs.h >>conftest.$ac_ext 20056cat confdefs.h >>conftest.$ac_ext
@@ -18093,6 +20068,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18093 (exit $ac_status); } >/dev/null; then 20068 (exit $ac_status); } >/dev/null; then
18094 if test -s conftest.err; then 20069 if test -s conftest.err; then
18095 ac_cpp_err=$ac_c_preproc_warn_flag 20070 ac_cpp_err=$ac_c_preproc_warn_flag
20071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18096 else 20072 else
18097 ac_cpp_err= 20073 ac_cpp_err=
18098 fi 20074 fi
@@ -18112,33 +20088,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112echo "${ECHO_T}$ac_header_preproc" >&6 20088echo "${ECHO_T}$ac_header_preproc" >&6
18113 20089
18114# So? What about this header? 20090# So? What about this header?
18115case $ac_header_compiler:$ac_header_preproc in 20091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18116 yes:no ) 20092 yes:no: )
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18121 ( 20097 ac_header_preproc=yes
18122 cat <<\_ASBOX
18123## ------------------------------------ ##
18124## Report this to bug-autoconf@gnu.org. ##
18125## ------------------------------------ ##
18126_ASBOX
18127 ) |
18128 sed "s/^/$as_me: WARNING: /" >&2
18129 ;; 20098 ;;
18130 no:yes ) 20099 no:yes:* )
18131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18136echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18137 ( 20112 (
18138 cat <<\_ASBOX 20113 cat <<\_ASBOX
18139## ------------------------------------ ## 20114## ------------------------------------------ ##
18140## Report this to bug-autoconf@gnu.org. ## 20115## Report this to the AC_PACKAGE_NAME lists. ##
18141## ------------------------------------ ## 20116## ------------------------------------------ ##
18142_ASBOX 20117_ASBOX
18143 ) | 20118 ) |
18144 sed "s/^/$as_me: WARNING: /" >&2 20119 sed "s/^/$as_me: WARNING: /" >&2
@@ -18149,7 +20124,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18149if eval "test \"\${$as_ac_Header+set}\" = set"; then 20124if eval "test \"\${$as_ac_Header+set}\" = set"; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6 20125 echo $ECHO_N "(cached) $ECHO_C" >&6
18151else 20126else
18152 eval "$as_ac_Header=$ac_header_preproc" 20127 eval "$as_ac_Header=\$ac_header_preproc"
18153fi 20128fi
18154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -18194,7 +20169,6 @@ if test "${ac_cv_type_pid_t+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6 20169 echo $ECHO_N "(cached) $ECHO_C" >&6
18195else 20170else
18196 cat >conftest.$ac_ext <<_ACEOF 20171 cat >conftest.$ac_ext <<_ACEOF
18197#line $LINENO "configure"
18198/* confdefs.h. */ 20172/* confdefs.h. */
18199_ACEOF 20173_ACEOF
18200cat confdefs.h >>conftest.$ac_ext 20174cat confdefs.h >>conftest.$ac_ext
@@ -18214,11 +20188,21 @@ if (sizeof (pid_t))
18214_ACEOF 20188_ACEOF
18215rm -f conftest.$ac_objext 20189rm -f conftest.$ac_objext
18216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>&5 20191 (eval $ac_compile) 2>conftest.er1
18218 ac_status=$? 20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } && 20197 (exit $ac_status); } &&
18221 { ac_try='test -s conftest.$ac_objext' 20198 { ac_try='test -z "$ac_c_werror_flag"
20199 || test ! -s conftest.err'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest.$ac_objext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5 20207 (eval $ac_try) 2>&5
18224 ac_status=$? 20208 ac_status=$?
@@ -18231,7 +20215,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18231 20215
18232ac_cv_type_pid_t=no 20216ac_cv_type_pid_t=no
18233fi 20217fi
18234rm -f conftest.$ac_objext conftest.$ac_ext 20218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18235fi 20219fi
18236echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 20220echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18237echo "${ECHO_T}$ac_cv_type_pid_t" >&6 20221echo "${ECHO_T}$ac_cv_type_pid_t" >&6
@@ -18263,7 +20247,6 @@ else
18263echo "$as_me:$LINENO: checking $ac_header usability" >&5 20247echo "$as_me:$LINENO: checking $ac_header usability" >&5
18264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 20248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18265cat >conftest.$ac_ext <<_ACEOF 20249cat >conftest.$ac_ext <<_ACEOF
18266#line $LINENO "configure"
18267/* confdefs.h. */ 20250/* confdefs.h. */
18268_ACEOF 20251_ACEOF
18269cat confdefs.h >>conftest.$ac_ext 20252cat confdefs.h >>conftest.$ac_ext
@@ -18274,11 +20257,21 @@ $ac_includes_default
18274_ACEOF 20257_ACEOF
18275rm -f conftest.$ac_objext 20258rm -f conftest.$ac_objext
18276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18277 (eval $ac_compile) 2>&5 20260 (eval $ac_compile) 2>conftest.er1
18278 ac_status=$? 20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } && 20266 (exit $ac_status); } &&
18281 { ac_try='test -s conftest.$ac_objext' 20267 { ac_try='test -z "$ac_c_werror_flag"
20268 || test ! -s conftest.err'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; } &&
20274 { ac_try='test -s conftest.$ac_objext'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5 20276 (eval $ac_try) 2>&5
18284 ac_status=$? 20277 ac_status=$?
@@ -18291,7 +20284,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18291 20284
18292ac_header_compiler=no 20285ac_header_compiler=no
18293fi 20286fi
18294rm -f conftest.$ac_objext conftest.$ac_ext 20287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18296echo "${ECHO_T}$ac_header_compiler" >&6 20289echo "${ECHO_T}$ac_header_compiler" >&6
18297 20290
@@ -18299,7 +20292,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6
18299echo "$as_me:$LINENO: checking $ac_header presence" >&5 20292echo "$as_me:$LINENO: checking $ac_header presence" >&5
18300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 20293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18301cat >conftest.$ac_ext <<_ACEOF 20294cat >conftest.$ac_ext <<_ACEOF
18302#line $LINENO "configure"
18303/* confdefs.h. */ 20295/* confdefs.h. */
18304_ACEOF 20296_ACEOF
18305cat confdefs.h >>conftest.$ac_ext 20297cat confdefs.h >>conftest.$ac_ext
@@ -18317,6 +20309,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18317 (exit $ac_status); } >/dev/null; then 20309 (exit $ac_status); } >/dev/null; then
18318 if test -s conftest.err; then 20310 if test -s conftest.err; then
18319 ac_cpp_err=$ac_c_preproc_warn_flag 20311 ac_cpp_err=$ac_c_preproc_warn_flag
20312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18320 else 20313 else
18321 ac_cpp_err= 20314 ac_cpp_err=
18322 fi 20315 fi
@@ -18336,33 +20329,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18336echo "${ECHO_T}$ac_header_preproc" >&6 20329echo "${ECHO_T}$ac_header_preproc" >&6
18337 20330
18338# So? What about this header? 20331# So? What about this header?
18339case $ac_header_compiler:$ac_header_preproc in 20332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18340 yes:no ) 20333 yes:no: )
18341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18345 ( 20338 ac_header_preproc=yes
18346 cat <<\_ASBOX
18347## ------------------------------------ ##
18348## Report this to bug-autoconf@gnu.org. ##
18349## ------------------------------------ ##
18350_ASBOX
18351 ) |
18352 sed "s/^/$as_me: WARNING: /" >&2
18353 ;; 20339 ;;
18354 no:yes ) 20340 no:yes:* )
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18361 ( 20353 (
18362 cat <<\_ASBOX 20354 cat <<\_ASBOX
18363## ------------------------------------ ## 20355## ------------------------------------------ ##
18364## Report this to bug-autoconf@gnu.org. ## 20356## Report this to the AC_PACKAGE_NAME lists. ##
18365## ------------------------------------ ## 20357## ------------------------------------------ ##
18366_ASBOX 20358_ASBOX
18367 ) | 20359 ) |
18368 sed "s/^/$as_me: WARNING: /" >&2 20360 sed "s/^/$as_me: WARNING: /" >&2
@@ -18373,7 +20365,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18373if eval "test \"\${$as_ac_Header+set}\" = set"; then 20365if eval "test \"\${$as_ac_Header+set}\" = set"; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6 20366 echo $ECHO_N "(cached) $ECHO_C" >&6
18375else 20367else
18376 eval "$as_ac_Header=$ac_header_preproc" 20368 eval "$as_ac_Header=\$ac_header_preproc"
18377fi 20369fi
18378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 20370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 20371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
@@ -18399,21 +20391,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6 20391 echo $ECHO_N "(cached) $ECHO_C" >&6
18400else 20392else
18401 cat >conftest.$ac_ext <<_ACEOF 20393 cat >conftest.$ac_ext <<_ACEOF
18402#line $LINENO "configure"
18403/* confdefs.h. */ 20394/* confdefs.h. */
18404_ACEOF 20395_ACEOF
18405cat confdefs.h >>conftest.$ac_ext 20396cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF 20397cat >>conftest.$ac_ext <<_ACEOF
18407/* end confdefs.h. */ 20398/* end confdefs.h. */
20399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20401#define $ac_func innocuous_$ac_func
20402
18408/* System header to define __stub macros and hopefully few prototypes, 20403/* System header to define __stub macros and hopefully few prototypes,
18409 which can conflict with char $ac_func (); below. 20404 which can conflict with char $ac_func (); below.
18410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18411 <limits.h> exists even on freestanding compilers. */ 20406 <limits.h> exists even on freestanding compilers. */
20407
18412#ifdef __STDC__ 20408#ifdef __STDC__
18413# include <limits.h> 20409# include <limits.h>
18414#else 20410#else
18415# include <assert.h> 20411# include <assert.h>
18416#endif 20412#endif
20413
20414#undef $ac_func
20415
18417/* Override any gcc2 internal prototype to avoid an error. */ 20416/* Override any gcc2 internal prototype to avoid an error. */
18418#ifdef __cplusplus 20417#ifdef __cplusplus
18419extern "C" 20418extern "C"
@@ -18444,11 +20443,21 @@ return f != $ac_func;
18444_ACEOF 20443_ACEOF
18445rm -f conftest.$ac_objext conftest$ac_exeext 20444rm -f conftest.$ac_objext conftest$ac_exeext
18446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447 (eval $ac_link) 2>&5 20446 (eval $ac_link) 2>conftest.er1
18448 ac_status=$? 20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && 20452 (exit $ac_status); } &&
18451 { ac_try='test -s conftest$ac_exeext' 20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest$ac_exeext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5 20462 (eval $ac_try) 2>&5
18454 ac_status=$? 20463 ac_status=$?
@@ -18461,7 +20470,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
18461 20470
18462eval "$as_ac_var=no" 20471eval "$as_ac_var=no"
18463fi 20472fi
18464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20473rm -f conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
18465fi 20475fi
18466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18467echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
@@ -18491,9 +20501,9 @@ else
18491 /* Some systems only have a dummy stub for fork() */ 20501 /* Some systems only have a dummy stub for fork() */
18492 int main () 20502 int main ()
18493 { 20503 {
18494 if (fork() < 0) 20504 if (fork() < 0)
18495 exit (1); 20505 exit (1);
18496 exit (0); 20506 exit (0);
18497 } 20507 }
18498_ACEOF 20508_ACEOF
18499rm -f conftest$ac_exeext 20509rm -f conftest$ac_exeext
@@ -18516,7 +20526,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18516( exit $ac_status ) 20526( exit $ac_status )
18517ac_cv_func_fork_works=no 20527ac_cv_func_fork_works=no
18518fi 20528fi
18519rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18520fi 20530fi
18521fi 20531fi
18522echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 20532echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
@@ -18549,7 +20559,6 @@ else
18549 ac_cv_func_vfork_works=cross 20559 ac_cv_func_vfork_works=cross
18550else 20560else
18551 cat >conftest.$ac_ext <<_ACEOF 20561 cat >conftest.$ac_ext <<_ACEOF
18552#line $LINENO "configure"
18553/* confdefs.h. */ 20562/* confdefs.h. */
18554_ACEOF 20563_ACEOF
18555cat confdefs.h >>conftest.$ac_ext 20564cat confdefs.h >>conftest.$ac_ext
@@ -18671,7 +20680,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18671( exit $ac_status ) 20680( exit $ac_status )
18672ac_cv_func_vfork_works=no 20681ac_cv_func_vfork_works=no
18673fi 20682fi
18674rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20683rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18675fi 20684fi
18676fi 20685fi
18677echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 20686echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
@@ -18679,7 +20688,7 @@ echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18679 20688
18680fi; 20689fi;
18681if test "x$ac_cv_func_fork_works" = xcross; then 20690if test "x$ac_cv_func_fork_works" = xcross; then
18682 ac_cv_func_vfork_works=ac_cv_func_vfork 20691 ac_cv_func_vfork_works=$ac_cv_func_vfork
18683 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 20692 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18684echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 20693echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18685fi 20694fi
@@ -18712,7 +20721,6 @@ if test "${emacs_cv_langinfo_codeset+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6 20721 echo $ECHO_N "(cached) $ECHO_C" >&6
18713else 20722else
18714 cat >conftest.$ac_ext <<_ACEOF 20723 cat >conftest.$ac_ext <<_ACEOF
18715#line $LINENO "configure"
18716/* confdefs.h. */ 20724/* confdefs.h. */
18717_ACEOF 20725_ACEOF
18718cat confdefs.h >>conftest.$ac_ext 20726cat confdefs.h >>conftest.$ac_ext
@@ -18729,11 +20737,21 @@ char* cs = nl_langinfo(CODESET);
18729_ACEOF 20737_ACEOF
18730rm -f conftest.$ac_objext conftest$ac_exeext 20738rm -f conftest.$ac_objext conftest$ac_exeext
18731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18732 (eval $ac_link) 2>&5 20740 (eval $ac_link) 2>conftest.er1
18733 ac_status=$? 20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && 20746 (exit $ac_status); } &&
18736 { ac_try='test -s conftest$ac_exeext' 20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5 20756 (eval $ac_try) 2>&5
18739 ac_status=$? 20757 ac_status=$?
@@ -18746,7 +20764,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
18746 20764
18747emacs_cv_langinfo_codeset=no 20765emacs_cv_langinfo_codeset=no
18748fi 20766fi
18749rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20767rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
18750 20769
18751fi 20770fi
18752echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 20771echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
@@ -18765,7 +20784,6 @@ if test "${ac_cv_type_size_t+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6 20784 echo $ECHO_N "(cached) $ECHO_C" >&6
18766else 20785else
18767 cat >conftest.$ac_ext <<_ACEOF 20786 cat >conftest.$ac_ext <<_ACEOF
18768#line $LINENO "configure"
18769/* confdefs.h. */ 20787/* confdefs.h. */
18770_ACEOF 20788_ACEOF
18771cat confdefs.h >>conftest.$ac_ext 20789cat confdefs.h >>conftest.$ac_ext
@@ -18785,11 +20803,21 @@ if (sizeof (size_t))
18785_ACEOF 20803_ACEOF
18786rm -f conftest.$ac_objext 20804rm -f conftest.$ac_objext
18787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>&5 20806 (eval $ac_compile) 2>conftest.er1
18789 ac_status=$? 20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } && 20812 (exit $ac_status); } &&
18792 { ac_try='test -s conftest.$ac_objext' 20813 { ac_try='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5 20822 (eval $ac_try) 2>&5
18795 ac_status=$? 20823 ac_status=$?
@@ -18802,7 +20830,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18802 20830
18803ac_cv_type_size_t=no 20831ac_cv_type_size_t=no
18804fi 20832fi
18805rm -f conftest.$ac_objext conftest.$ac_ext 20833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18806fi 20834fi
18807echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20835echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18808echo "${ECHO_T}$ac_cv_type_size_t" >&6 20836echo "${ECHO_T}$ac_cv_type_size_t" >&6
@@ -18822,7 +20850,6 @@ if test "${ac_cv_type_mbstate_t+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6 20850 echo $ECHO_N "(cached) $ECHO_C" >&6
18823else 20851else
18824 cat >conftest.$ac_ext <<_ACEOF 20852 cat >conftest.$ac_ext <<_ACEOF
18825#line $LINENO "configure"
18826/* confdefs.h. */ 20853/* confdefs.h. */
18827_ACEOF 20854_ACEOF
18828cat confdefs.h >>conftest.$ac_ext 20855cat confdefs.h >>conftest.$ac_ext
@@ -18840,11 +20867,21 @@ mbstate_t x; return sizeof x;
18840_ACEOF 20867_ACEOF
18841rm -f conftest.$ac_objext 20868rm -f conftest.$ac_objext
18842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>&5 20870 (eval $ac_compile) 2>conftest.er1
18844 ac_status=$? 20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } && 20876 (exit $ac_status); } &&
18847 { ac_try='test -s conftest.$ac_objext' 20877 { ac_try='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5 20886 (eval $ac_try) 2>&5
18850 ac_status=$? 20887 ac_status=$?
@@ -18857,7 +20894,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
18857 20894
18858ac_cv_type_mbstate_t=no 20895ac_cv_type_mbstate_t=no
18859fi 20896fi
18860rm -f conftest.$ac_objext conftest.$ac_ext 20897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18861fi 20898fi
18862echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 20899echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
18863echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 20900echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
@@ -18881,7 +20918,6 @@ if test "${emacs_cv_c_restrict+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6 20918 echo $ECHO_N "(cached) $ECHO_C" >&6
18882else 20919else
18883 cat >conftest.$ac_ext <<_ACEOF 20920 cat >conftest.$ac_ext <<_ACEOF
18884#line $LINENO "configure"
18885/* confdefs.h. */ 20921/* confdefs.h. */
18886_ACEOF 20922_ACEOF
18887cat confdefs.h >>conftest.$ac_ext 20923cat confdefs.h >>conftest.$ac_ext
@@ -18898,11 +20934,21 @@ main ()
18898_ACEOF 20934_ACEOF
18899rm -f conftest.$ac_objext 20935rm -f conftest.$ac_objext
18900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18901 (eval $ac_compile) 2>&5 20937 (eval $ac_compile) 2>conftest.er1
18902 ac_status=$? 20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && 20943 (exit $ac_status); } &&
18905 { ac_try='test -s conftest.$ac_objext' 20944 { ac_try='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try='test -s conftest.$ac_objext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5 20953 (eval $ac_try) 2>&5
18908 ac_status=$? 20954 ac_status=$?
@@ -18914,7 +20960,6 @@ else
18914sed 's/^/| /' conftest.$ac_ext >&5 20960sed 's/^/| /' conftest.$ac_ext >&5
18915 20961
18916cat >conftest.$ac_ext <<_ACEOF 20962cat >conftest.$ac_ext <<_ACEOF
18917#line $LINENO "configure"
18918/* confdefs.h. */ 20963/* confdefs.h. */
18919_ACEOF 20964_ACEOF
18920cat confdefs.h >>conftest.$ac_ext 20965cat confdefs.h >>conftest.$ac_ext
@@ -18931,11 +20976,21 @@ main ()
18931_ACEOF 20976_ACEOF
18932rm -f conftest.$ac_objext 20977rm -f conftest.$ac_objext
18933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18934 (eval $ac_compile) 2>&5 20979 (eval $ac_compile) 2>conftest.er1
18935 ac_status=$? 20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } && 20985 (exit $ac_status); } &&
18938 { ac_try='test -s conftest.$ac_objext' 20986 { ac_try='test -z "$ac_c_werror_flag"
20987 || test ! -s conftest.err'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5 20995 (eval $ac_try) 2>&5
18941 ac_status=$? 20996 ac_status=$?
@@ -18948,9 +21003,9 @@ sed 's/^/| /' conftest.$ac_ext >&5
18948 21003
18949emacs_cv_c_restrict=no 21004emacs_cv_c_restrict=no
18950fi 21005fi
18951rm -f conftest.$ac_objext conftest.$ac_ext 21006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952fi 21007fi
18953rm -f conftest.$ac_objext conftest.$ac_ext 21008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18954fi 21009fi
18955echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 21010echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
18956echo "${ECHO_T}$emacs_cv_c_restrict" >&6 21011echo "${ECHO_T}$emacs_cv_c_restrict" >&6
@@ -18973,7 +21028,6 @@ if test "${emacs_cv_c_restrict_arr+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6 21028 echo $ECHO_N "(cached) $ECHO_C" >&6
18974else 21029else
18975 cat >conftest.$ac_ext <<_ACEOF 21030 cat >conftest.$ac_ext <<_ACEOF
18976#line $LINENO "configure"
18977/* confdefs.h. */ 21031/* confdefs.h. */
18978_ACEOF 21032_ACEOF
18979cat confdefs.h >>conftest.$ac_ext 21033cat confdefs.h >>conftest.$ac_ext
@@ -18990,11 +21044,21 @@ main ()
18990_ACEOF 21044_ACEOF
18991rm -f conftest.$ac_objext 21045rm -f conftest.$ac_objext
18992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18993 (eval $ac_compile) 2>&5 21047 (eval $ac_compile) 2>conftest.er1
18994 ac_status=$? 21048 ac_status=$?
21049 grep -v '^ *+' conftest.er1 >conftest.err
21050 rm -f conftest.er1
21051 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } && 21053 (exit $ac_status); } &&
18997 { ac_try='test -s conftest.$ac_objext' 21054 { ac_try='test -z "$ac_c_werror_flag"
21055 || test ! -s conftest.err'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5 21063 (eval $ac_try) 2>&5
19000 ac_status=$? 21064 ac_status=$?
@@ -19007,7 +21071,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
19007 21071
19008emacs_cv_c_restrict_arr=no 21072emacs_cv_c_restrict_arr=no
19009fi 21073fi
19010rm -f conftest.$ac_objext conftest.$ac_ext 21074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19011fi 21075fi
19012echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 21076echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
19013echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6 21077echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
@@ -19218,7 +21282,6 @@ test "${exec_prefix}" != NONE &&
19218## C preprocessor. 21282## C preprocessor.
19219 21283
19220cat >conftest.$ac_ext <<_ACEOF 21284cat >conftest.$ac_ext <<_ACEOF
19221#line $LINENO "configure"
19222/* confdefs.h. */ 21285/* confdefs.h. */
19223_ACEOF 21286_ACEOF
19224cat confdefs.h >>conftest.$ac_ext 21287cat confdefs.h >>conftest.$ac_ext
@@ -19265,13 +21328,13 @@ _ACEOF
19265 # `set' does not quote correctly, so add quotes (double-quote 21328 # `set' does not quote correctly, so add quotes (double-quote
19266 # substitution turns \\\\ into \\, and sed turns \\ into \). 21329 # substitution turns \\\\ into \\, and sed turns \\ into \).
19267 sed -n \ 21330 sed -n \
19268 "s/'/'\\\\''/g; 21331 "s/'/'\\\\''/g;
19269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19270 ;; 21333 ;;
19271 *) 21334 *)
19272 # `set' quotes correctly as required by POSIX, so do not add quotes. 21335 # `set' quotes correctly as required by POSIX, so do not add quotes.
19273 sed -n \ 21336 sed -n \
19274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19275 ;; 21338 ;;
19276 esac; 21339 esac;
19277} | 21340} |
@@ -19301,13 +21364,13 @@ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19301# trailing colons and then remove the whole line if VPATH becomes empty 21364# trailing colons and then remove the whole line if VPATH becomes empty
19302# (actually we leave an empty line to preserve line numbers). 21365# (actually we leave an empty line to preserve line numbers).
19303if test "x$srcdir" = x.; then 21366if test "x$srcdir" = x.; then
19304 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19305s/:*\$(srcdir):*/:/; 21368s/:*\$(srcdir):*/:/;
19306s/:*\${srcdir}:*/:/; 21369s/:*\${srcdir}:*/:/;
19307s/:*@srcdir@:*/:/; 21370s/:*@srcdir@:*/:/;
19308s/^\([^=]*=[ ]*\):*/\1/; 21371s/^\([^=]*=[ ]*\):*/\1/;
19309s/:*$//; 21372s/:*$//;
19310s/^[^=]*=[ ]*$//; 21373s/^[^=]*=[ ]*$//;
19311}' 21374}'
19312fi 21375fi
19313 21376
@@ -19318,7 +21381,7 @@ ac_ltlibobjs=
19318for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19319 # 1. Remove the extension, and $U if already installed. 21382 # 1. Remove the extension, and $U if already installed.
19320 ac_i=`echo "$ac_i" | 21383 ac_i=`echo "$ac_i" |
19321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 21384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19322 # 2. Add them. 21385 # 2. Add them.
19323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 21386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 21387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
@@ -19362,9 +21425,10 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19362elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21425elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19363 set -o posix 21426 set -o posix
19364fi 21427fi
21428DUALCASE=1; export DUALCASE # for MKS sh
19365 21429
19366# Support unset when possible. 21430# Support unset when possible.
19367if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 21431if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19368 as_unset=unset 21432 as_unset=unset
19369else 21433else
19370 as_unset=false 21434 as_unset=false
@@ -19383,7 +21447,7 @@ for as_var in \
19383 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19384 LC_TELEPHONE LC_TIME 21448 LC_TELEPHONE LC_TIME
19385do 21449do
19386 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 21450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19387 eval $as_var=C; export $as_var 21451 eval $as_var=C; export $as_var
19388 else 21452 else
19389 $as_unset $as_var 21453 $as_unset $as_var
@@ -19562,16 +21626,17 @@ rm -f conf$$ conf$$.exe conf$$.file
19562if mkdir -p . 2>/dev/null; then 21626if mkdir -p . 2>/dev/null; then
19563 as_mkdir_p=: 21627 as_mkdir_p=:
19564else 21628else
21629 test -d ./-p && rmdir ./-p
19565 as_mkdir_p=false 21630 as_mkdir_p=false
19566fi 21631fi
19567 21632
19568as_executable_p="test -f" 21633as_executable_p="test -f"
19569 21634
19570# Sed expression to map a string onto a valid CPP name. 21635# Sed expression to map a string onto a valid CPP name.
19571as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21636as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19572 21637
19573# Sed expression to map a string onto a valid variable name. 21638# Sed expression to map a string onto a valid variable name.
19574as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21639as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19575 21640
19576 21641
19577# IFS 21642# IFS
@@ -19598,7 +21663,7 @@ _ASBOX
19598cat >&5 <<_CSEOF 21663cat >&5 <<_CSEOF
19599 21664
19600This file was extended by $as_me, which was 21665This file was extended by $as_me, which was
19601generated by GNU Autoconf 2.57. Invocation command line was 21666generated by GNU Autoconf 2.59. Invocation command line was
19602 21667
19603 CONFIG_FILES = $CONFIG_FILES 21668 CONFIG_FILES = $CONFIG_FILES
19604 CONFIG_HEADERS = $CONFIG_HEADERS 21669 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -19642,9 +21707,9 @@ Usage: $0 [OPTIONS] [FILE]...
19642 -d, --debug don't remove temporary files 21707 -d, --debug don't remove temporary files
19643 --recheck update $as_me by reconfiguring in the same conditions 21708 --recheck update $as_me by reconfiguring in the same conditions
19644 --file=FILE[:TEMPLATE] 21709 --file=FILE[:TEMPLATE]
19645 instantiate the configuration file FILE 21710 instantiate the configuration file FILE
19646 --header=FILE[:TEMPLATE] 21711 --header=FILE[:TEMPLATE]
19647 instantiate the configuration header FILE 21712 instantiate the configuration header FILE
19648 21713
19649Configuration files: 21714Configuration files:
19650$config_files 21715$config_files
@@ -19661,11 +21726,10 @@ _ACEOF
19661cat >>$CONFIG_STATUS <<_ACEOF 21726cat >>$CONFIG_STATUS <<_ACEOF
19662ac_cs_version="\\ 21727ac_cs_version="\\
19663config.status 21728config.status
19664configured by $0, generated by GNU Autoconf 2.57, 21729configured by $0, generated by GNU Autoconf 2.59,
19665 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 21730 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19666 21731
19667Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 21732Copyright (C) 2003 Free Software Foundation, Inc.
19668Free Software Foundation, Inc.
19669This config.status script is free software; the Free Software Foundation 21733This config.status script is free software; the Free Software Foundation
19670gives unlimited permission to copy, distribute and modify it." 21734gives unlimited permission to copy, distribute and modify it."
19671srcdir=$srcdir 21735srcdir=$srcdir
@@ -19957,9 +22021,9 @@ _ACEOF
19957 (echo ':t 22021 (echo ':t
19958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19959 if test -z "$ac_sed_cmds"; then 22023 if test -z "$ac_sed_cmds"; then
19960 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19961 else 22025 else
19962 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19963 fi 22027 fi
19964 ac_sed_frag=`expr $ac_sed_frag + 1` 22028 ac_sed_frag=`expr $ac_sed_frag + 1`
19965 ac_beg=$ac_end 22029 ac_beg=$ac_end
@@ -19977,21 +22041,21 @@ for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19978 case $ac_file in 22042 case $ac_file in
19979 - | *:- | *:-:* ) # input from stdin 22043 - | *:- | *:-:* ) # input from stdin
19980 cat >$tmp/stdin 22044 cat >$tmp/stdin
19981 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19982 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19983 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19985 * ) ac_file_in=$ac_file.in ;; 22049 * ) ac_file_in=$ac_file.in ;;
19986 esac 22050 esac
19987 22051
19988 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19989 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19990$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22054$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19991 X"$ac_file" : 'X\(//\)[^/]' \| \ 22055 X"$ac_file" : 'X\(//\)[^/]' \| \
19992 X"$ac_file" : 'X\(//\)$' \| \ 22056 X"$ac_file" : 'X\(//\)$' \| \
19993 X"$ac_file" : 'X\(/\)' \| \ 22057 X"$ac_file" : 'X\(/\)' \| \
19994 . : '\(.\)' 2>/dev/null || 22058 . : '\(.\)' 2>/dev/null ||
19995echo X"$ac_file" | 22059echo X"$ac_file" |
19996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19997 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -20007,10 +22071,10 @@ echo X"$ac_file" |
20007 as_dirs="$as_dir $as_dirs" 22071 as_dirs="$as_dir $as_dirs"
20008 as_dir=`(dirname "$as_dir") 2>/dev/null || 22072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20010 X"$as_dir" : 'X\(//\)[^/]' \| \ 22074 X"$as_dir" : 'X\(//\)[^/]' \| \
20011 X"$as_dir" : 'X\(//\)$' \| \ 22075 X"$as_dir" : 'X\(//\)$' \| \
20012 X"$as_dir" : 'X\(/\)' \| \ 22076 X"$as_dir" : 'X\(/\)' \| \
20013 . : '\(.\)' 2>/dev/null || 22077 . : '\(.\)' 2>/dev/null ||
20014echo X"$as_dir" | 22078echo X"$as_dir" |
20015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20016 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -20048,12 +22112,45 @@ case $srcdir in
20048 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20049 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20050esac 22114esac
20051# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 22115
20052# absolute. 22116# Do not use `cd foo && pwd` to compute absolute paths, because
20053ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 22117# the directories may not exist.
20054ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 22118case `pwd` in
20055ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 22119.) ac_abs_builddir="$ac_dir";;
20056ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 22120*)
22121 case "$ac_dir" in
22122 .) ac_abs_builddir=`pwd`;;
22123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22125 esac;;
22126esac
22127case $ac_abs_builddir in
22128.) ac_abs_top_builddir=${ac_top_builddir}.;;
22129*)
22130 case ${ac_top_builddir}. in
22131 .) ac_abs_top_builddir=$ac_abs_builddir;;
22132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22134 esac;;
22135esac
22136case $ac_abs_builddir in
22137.) ac_abs_srcdir=$ac_srcdir;;
22138*)
22139 case $ac_srcdir in
22140 .) ac_abs_srcdir=$ac_abs_builddir;;
22141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22143 esac;;
22144esac
22145case $ac_abs_builddir in
22146.) ac_abs_top_srcdir=$ac_top_srcdir;;
22147*)
22148 case $ac_top_srcdir in
22149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22152 esac;;
22153esac
20057 22154
20058 22155
20059 case $INSTALL in 22156 case $INSTALL in
@@ -20075,7 +22172,7 @@ echo "$as_me: creating $ac_file" >&6;}
20075 configure_input="$ac_file. " 22172 configure_input="$ac_file. "
20076 fi 22173 fi
20077 configure_input=$configure_input"Generated from `echo $ac_file_in | 22174 configure_input=$configure_input"Generated from `echo $ac_file_in |
20078 sed 's,.*/,,'` by configure." 22175 sed 's,.*/,,'` by configure."
20079 22176
20080 # First look for the input files in the build tree, otherwise in the 22177 # First look for the input files in the build tree, otherwise in the
20081 # src tree. 22178 # src tree.
@@ -20084,24 +22181,24 @@ echo "$as_me: creating $ac_file" >&6;}
20084 case $f in 22181 case $f in
20085 -) echo $tmp/stdin ;; 22182 -) echo $tmp/stdin ;;
20086 [\\/$]*) 22183 [\\/$]*)
20087 # Absolute (can't be DOS-style, as IFS=:) 22184 # Absolute (can't be DOS-style, as IFS=:)
20088 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20089echo "$as_me: error: cannot find input file: $f" >&2;} 22186echo "$as_me: error: cannot find input file: $f" >&2;}
20090 { (exit 1); exit 1; }; } 22187 { (exit 1); exit 1; }; }
20091 echo $f;; 22188 echo "$f";;
20092 *) # Relative 22189 *) # Relative
20093 if test -f "$f"; then 22190 if test -f "$f"; then
20094 # Build tree 22191 # Build tree
20095 echo $f 22192 echo "$f"
20096 elif test -f "$srcdir/$f"; then 22193 elif test -f "$srcdir/$f"; then
20097 # Source tree 22194 # Source tree
20098 echo $srcdir/$f 22195 echo "$srcdir/$f"
20099 else 22196 else
20100 # /dev/null tree 22197 # /dev/null tree
20101 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20102echo "$as_me: error: cannot find input file: $f" >&2;} 22199echo "$as_me: error: cannot find input file: $f" >&2;}
20103 { (exit 1); exit 1; }; } 22200 { (exit 1); exit 1; }; }
20104 fi;; 22201 fi;;
20105 esac 22202 esac
20106 done` || { (exit 1); exit 1; } 22203 done` || { (exit 1); exit 1; }
20107_ACEOF 22204_ACEOF
@@ -20143,12 +22240,12 @@ cat >>$CONFIG_STATUS <<\_ACEOF
20143# NAME is the cpp macro being defined and VALUE is the value it is being given. 22240# NAME is the cpp macro being defined and VALUE is the value it is being given.
20144# 22241#
20145# ac_d sets the value in "#define NAME VALUE" lines. 22242# ac_d sets the value in "#define NAME VALUE" lines.
20146ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 22243ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20147ac_dB='[ ].*$,\1#\2' 22244ac_dB='[ ].*$,\1#\2'
20148ac_dC=' ' 22245ac_dC=' '
20149ac_dD=',;t' 22246ac_dD=',;t'
20150# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 22247# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20151ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 22248ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20152ac_uB='$,\1#\2define\3' 22249ac_uB='$,\1#\2define\3'
20153ac_uC=' ' 22250ac_uC=' '
20154ac_uD=',;t' 22251ac_uD=',;t'
@@ -20157,11 +22254,11 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20158 case $ac_file in 22255 case $ac_file in
20159 - | *:- | *:-:* ) # input from stdin 22256 - | *:- | *:-:* ) # input from stdin
20160 cat >$tmp/stdin 22257 cat >$tmp/stdin
20161 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20162 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20163 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20165 * ) ac_file_in=$ac_file.in ;; 22262 * ) ac_file_in=$ac_file.in ;;
20166 esac 22263 esac
20167 22264
@@ -20175,28 +22272,29 @@ echo "$as_me: creating $ac_file" >&6;}
20175 case $f in 22272 case $f in
20176 -) echo $tmp/stdin ;; 22273 -) echo $tmp/stdin ;;
20177 [\\/$]*) 22274 [\\/$]*)
20178 # Absolute (can't be DOS-style, as IFS=:) 22275 # Absolute (can't be DOS-style, as IFS=:)
20179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20180echo "$as_me: error: cannot find input file: $f" >&2;} 22277echo "$as_me: error: cannot find input file: $f" >&2;}
20181 { (exit 1); exit 1; }; } 22278 { (exit 1); exit 1; }; }
20182 echo $f;; 22279 # Do quote $f, to prevent DOS paths from being IFS'd.
22280 echo "$f";;
20183 *) # Relative 22281 *) # Relative
20184 if test -f "$f"; then 22282 if test -f "$f"; then
20185 # Build tree 22283 # Build tree
20186 echo $f 22284 echo "$f"
20187 elif test -f "$srcdir/$f"; then 22285 elif test -f "$srcdir/$f"; then
20188 # Source tree 22286 # Source tree
20189 echo $srcdir/$f 22287 echo "$srcdir/$f"
20190 else 22288 else
20191 # /dev/null tree 22289 # /dev/null tree
20192 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 22290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20193echo "$as_me: error: cannot find input file: $f" >&2;} 22291echo "$as_me: error: cannot find input file: $f" >&2;}
20194 { (exit 1); exit 1; }; } 22292 { (exit 1); exit 1; }; }
20195 fi;; 22293 fi;;
20196 esac 22294 esac
20197 done` || { (exit 1); exit 1; } 22295 done` || { (exit 1); exit 1; }
20198 # Remove the trailing spaces. 22296 # Remove the trailing spaces.
20199 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 22297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20200 22298
20201_ACEOF 22299_ACEOF
20202 22300
@@ -20219,9 +22317,9 @@ s/[\\&,]/\\&/g
20219s,[\\$`],\\&,g 22317s,[\\$`],\\&,g
20220t clear 22318t clear
20221: clear 22319: clear
20222s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 22320s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20223t end 22321t end
20224s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22322s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20225: end 22323: end
20226_ACEOF 22324_ACEOF
20227# If some macros were called several times there might be several times 22325# If some macros were called several times there might be several times
@@ -20235,13 +22333,13 @@ rm -f confdef2sed.sed
20235# example, in the case of _POSIX_SOURCE, which is predefined and required 22333# example, in the case of _POSIX_SOURCE, which is predefined and required
20236# on some systems where configure will not decide to define it. 22334# on some systems where configure will not decide to define it.
20237cat >>conftest.undefs <<\_ACEOF 22335cat >>conftest.undefs <<\_ACEOF
20238s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22336s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20239_ACEOF 22337_ACEOF
20240 22338
20241# Break up conftest.defines because some shells have a limit on the size 22339# Break up conftest.defines because some shells have a limit on the size
20242# of here documents, and old seds have small limits too (100 cmds). 22340# of here documents, and old seds have small limits too (100 cmds).
20243echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22341echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20244echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22342echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20245echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22343echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20246echo ' :' >>$CONFIG_STATUS 22344echo ' :' >>$CONFIG_STATUS
20247rm -f conftest.tail 22345rm -f conftest.tail
@@ -20250,7 +22348,7 @@ do
20250 # Write a limited-size here document to $tmp/defines.sed. 22348 # Write a limited-size here document to $tmp/defines.sed.
20251 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20252 # Speed up: don't consider the non `#define' lines. 22350 # Speed up: don't consider the non `#define' lines.
20253 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20254 # Work around the forget-to-reset-the-flag bug. 22352 # Work around the forget-to-reset-the-flag bug.
20255 echo 't clr' >>$CONFIG_STATUS 22353 echo 't clr' >>$CONFIG_STATUS
20256 echo ': clr' >>$CONFIG_STATUS 22354 echo ': clr' >>$CONFIG_STATUS
@@ -20277,7 +22375,7 @@ do
20277 # Write a limited-size here document to $tmp/undefs.sed. 22375 # Write a limited-size here document to $tmp/undefs.sed.
20278 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20279 # Speed up: don't consider the non `#undef' 22377 # Speed up: don't consider the non `#undef'
20280 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20281 # Work around the forget-to-reset-the-flag bug. 22379 # Work around the forget-to-reset-the-flag bug.
20282 echo 't clr' >>$CONFIG_STATUS 22380 echo 't clr' >>$CONFIG_STATUS
20283 echo ': clr' >>$CONFIG_STATUS 22381 echo ': clr' >>$CONFIG_STATUS
@@ -20311,10 +22409,10 @@ echo "$as_me: $ac_file is unchanged" >&6;}
20311 else 22409 else
20312 ac_dir=`(dirname "$ac_file") 2>/dev/null || 22410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22411$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20314 X"$ac_file" : 'X\(//\)[^/]' \| \ 22412 X"$ac_file" : 'X\(//\)[^/]' \| \
20315 X"$ac_file" : 'X\(//\)$' \| \ 22413 X"$ac_file" : 'X\(//\)$' \| \
20316 X"$ac_file" : 'X\(/\)' \| \ 22414 X"$ac_file" : 'X\(/\)' \| \
20317 . : '\(.\)' 2>/dev/null || 22415 . : '\(.\)' 2>/dev/null ||
20318echo X"$ac_file" | 22416echo X"$ac_file" |
20319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20320 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -20330,10 +22428,10 @@ echo X"$ac_file" |
20330 as_dirs="$as_dir $as_dirs" 22428 as_dirs="$as_dir $as_dirs"
20331 as_dir=`(dirname "$as_dir") 2>/dev/null || 22429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20333 X"$as_dir" : 'X\(//\)[^/]' \| \ 22431 X"$as_dir" : 'X\(//\)[^/]' \| \
20334 X"$as_dir" : 'X\(//\)$' \| \ 22432 X"$as_dir" : 'X\(//\)$' \| \
20335 X"$as_dir" : 'X\(/\)' \| \ 22433 X"$as_dir" : 'X\(/\)' \| \
20336 . : '\(.\)' 2>/dev/null || 22434 . : '\(.\)' 2>/dev/null ||
20337echo X"$as_dir" | 22435echo X"$as_dir" |
20338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20339 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
@@ -20365,16 +22463,41 @@ for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20365 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22463 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20366 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 22464 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20367$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22465$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20368 X"$ac_dest" : 'X\(//\)[^/]' \| \ 22466 X"$ac_dest" : 'X\(//\)[^/]' \| \
20369 X"$ac_dest" : 'X\(//\)$' \| \ 22467 X"$ac_dest" : 'X\(//\)$' \| \
20370 X"$ac_dest" : 'X\(/\)' \| \ 22468 X"$ac_dest" : 'X\(/\)' \| \
20371 . : '\(.\)' 2>/dev/null || 22469 . : '\(.\)' 2>/dev/null ||
20372echo X"$ac_dest" | 22470echo X"$ac_dest" |
20373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20374 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20375 /^X\(\/\/\)$/{ s//\1/; q; } 22473 /^X\(\/\/\)$/{ s//\1/; q; }
20376 /^X\(\/\).*/{ s//\1/; q; } 22474 /^X\(\/\).*/{ s//\1/; q; }
20377 s/.*/./; q'` 22475 s/.*/./; q'`
22476 { if $as_mkdir_p; then
22477 mkdir -p "$ac_dir"
22478 else
22479 as_dir="$ac_dir"
22480 as_dirs=
22481 while test ! -d "$as_dir"; do
22482 as_dirs="$as_dir $as_dirs"
22483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485 X"$as_dir" : 'X\(//\)[^/]' \| \
22486 X"$as_dir" : 'X\(//\)$' \| \
22487 X"$as_dir" : 'X\(/\)' \| \
22488 . : '\(.\)' 2>/dev/null ||
22489echo X"$as_dir" |
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22492 /^X\(\/\/\)$/{ s//\1/; q; }
22493 /^X\(\/\).*/{ s//\1/; q; }
22494 s/.*/./; q'`
22495 done
22496 test ! -n "$as_dirs" || mkdir $as_dirs
22497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22499 { (exit 1); exit 1; }; }; }
22500
20378 ac_builddir=. 22501 ac_builddir=.
20379 22502
20380if test "$ac_dir" != .; then 22503if test "$ac_dir" != .; then
@@ -20400,12 +22523,45 @@ case $srcdir in
20400 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 22523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20401 ac_top_srcdir=$ac_top_builddir$srcdir ;; 22524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20402esac 22525esac
20403# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 22526
20404# absolute. 22527# Do not use `cd foo && pwd` to compute absolute paths, because
20405ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 22528# the directories may not exist.
20406ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 22529case `pwd` in
20407ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 22530.) ac_abs_builddir="$ac_dir";;
20408ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 22531*)
22532 case "$ac_dir" in
22533 .) ac_abs_builddir=`pwd`;;
22534 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22535 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22536 esac;;
22537esac
22538case $ac_abs_builddir in
22539.) ac_abs_top_builddir=${ac_top_builddir}.;;
22540*)
22541 case ${ac_top_builddir}. in
22542 .) ac_abs_top_builddir=$ac_abs_builddir;;
22543 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22544 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22545 esac;;
22546esac
22547case $ac_abs_builddir in
22548.) ac_abs_srcdir=$ac_srcdir;;
22549*)
22550 case $ac_srcdir in
22551 .) ac_abs_srcdir=$ac_abs_builddir;;
22552 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22553 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22554 esac;;
22555esac
22556case $ac_abs_builddir in
22557.) ac_abs_top_srcdir=$ac_top_srcdir;;
22558*)
22559 case $ac_top_srcdir in
22560 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22561 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22562 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22563 esac;;
22564esac
20409 22565
20410 22566
20411 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 22567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
diff --git a/configure.in b/configure.in
index 34f7836e0da..8663ce9765c 100644
--- a/configure.in
+++ b/configure.in
@@ -1507,6 +1507,12 @@ if test $emacs_cv_struct_exception != yes; then
1507 AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.]) 1507 AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.])
1508fi 1508fi
1509 1509
1510AC_CHECK_HEADERS(sys/socket.h)
1511AC_CHECK_HEADERS(net/if.h, , , [AC_INCLUDES_DEFAULT
1512#if HAVE_SYS_SOCKET_H
1513#include <sys/socket.h>
1514#endif])
1515
1510dnl checks for structure members 1516dnl checks for structure members
1511AC_STRUCT_TM 1517AC_STRUCT_TM
1512AC_STRUCT_TIMEZONE 1518AC_STRUCT_TIMEZONE
@@ -1516,7 +1522,14 @@ AC_CHECK_MEMBER(struct tm.tm_gmtoff,
1516 [#include <time.h>]) 1522 [#include <time.h>])
1517AC_CHECK_MEMBERS([struct ifreq.ifr_flags, struct ifreq.ifr_hwaddr, 1523AC_CHECK_MEMBERS([struct ifreq.ifr_flags, struct ifreq.ifr_hwaddr,
1518 struct ifreq.ifr_netmask, struct ifreq.ifr_broadaddr, 1524 struct ifreq.ifr_netmask, struct ifreq.ifr_broadaddr,
1519 struct ifreq.ifr_addr], , ,[#include <net/if.h>]) 1525 struct ifreq.ifr_addr], , ,
1526 [AC_INCLUDES_DEFAULT
1527#if HAVE_SYS_SOCKET_H
1528#include <sys/socket.h>
1529#endif
1530#if HAVE_NET_IF_H
1531#include <net/if.h>
1532#endif])
1520 1533
1521dnl checks for compiler characteristics 1534dnl checks for compiler characteristics
1522 1535
@@ -1845,7 +1858,7 @@ dnl This function defintion taken from Gnome 2.0
1845dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 1858dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
1846dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page 1859dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
1847dnl also defines GSTUFF_PKG_ERRORS on error 1860dnl also defines GSTUFF_PKG_ERRORS on error
1848AC_DEFUN(PKG_CHECK_MODULES, [ 1861AC_DEFUN([PKG_CHECK_MODULES], [
1849 succeeded=no 1862 succeeded=no
1850 1863
1851 if test -z "$PKG_CONFIG"; then 1864 if test -z "$PKG_CONFIG"; then
@@ -1893,7 +1906,7 @@ AC_DEFUN(PKG_CHECK_MODULES, [
1893 if test $succeeded = yes; then 1906 if test $succeeded = yes; then
1894 ifelse([$3], , :, [$3]) 1907 ifelse([$3], , :, [$3])
1895 else 1908 else
1896 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) 1909 ifelse([$4], , [AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.])], [$4])
1897 fi 1910 fi
1898]) 1911])
1899 1912
@@ -2510,7 +2523,7 @@ dnl Fixme: Not used. Should this be HAVE_SOCKETS?
2510 [Define to 1 if you have inet sockets.]) 2523 [Define to 1 if you have inet sockets.])
2511fi 2524fi
2512 2525
2513AC_CHECK_HEADERS(sys/ioctl.h net/if.h) 2526AC_CHECK_HEADERS(sys/ioctl.h)
2514 2527
2515if test -f /usr/lpp/X11/bin/smt.exp; then 2528if test -f /usr/lpp/X11/bin/smt.exp; then
2516 AC_DEFINE(HAVE_AIX_SMT_EXP, 1, 2529 AC_DEFINE(HAVE_AIX_SMT_EXP, 1,
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 3e2350c7842..1a0774e7e57 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * make-docfile.c (main): For return code, no longer special-case VMS.
4 Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.
5
12003-09-28 Andreas B,A|(Bsching <crunchy@tzi.de> (tiny change) 62003-09-28 Andreas B,A|(Bsching <crunchy@tzi.de> (tiny change)
2 7
3 * emacsclient.c (quote_file_name): Print the result instead of 8 * emacsclient.c (quote_file_name): Print the result instead of
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 7330b821768..4210320b591 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */
23 of GNU Emacs. .elc and .el and .c files are allowed. 23 of GNU Emacs. .elc and .el and .c files are allowed.
24 A .o file can also be specified; the .c file it was made from is used. 24 A .o file can also be specified; the .c file it was made from is used.
25 This helps the makefile pass the correct list of files. 25 This helps the makefile pass the correct list of files.
26 Option -d DIR means change to DIR before looking for files.
26 27
27 The results, which go to standard output or to a file 28 The results, which go to standard output or to a file
28 specified with -a or -o (-a to append, -o to start from nothing), 29 specified with -a or -o (-a to append, -o to start from nothing),
@@ -174,10 +175,7 @@ main (argc, argv)
174 if (j == i) 175 if (j == i)
175 err_count += scan_file (argv[i]); 176 err_count += scan_file (argv[i]);
176 } 177 }
177#ifndef VMS 178 return (err_count > 0 ? EXIT_FAILURE : EXIT_SUCCESS);
178 exit (err_count > 0);
179#endif /* VMS */
180 return err_count > 0;
181} 179}
182 180
183/* Read file FILENAME and output its doc strings to outfile. */ 181/* Read file FILENAME and output its doc strings to outfile. */
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 20b42e74cdf..5c667e0b353 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,88 @@
3 * dired.el (dired-between-files): Always use dired-move-to-filename, 3 * dired.el (dired-between-files): Always use dired-move-to-filename,
4 which is more robust in non-english locales. 4 which is more robust in non-english locales.
5 5
62003-12-25 Markus Rost <rost@mathematik.uni-bielefeld.de>
7
8 * vc.el (vc-dired-purge): Avoid error from `kill-line'.
9
102003-12-24 Andreas Schwab <schwab@suse.de>
11
12 * shell.el (shell-file-name-quote-list): Add backslash.
13
14 * comint.el (comint-quote-filename): Correctly handle backslash
15 in comint-file-name-quote-list.
16
172003-12-24 Kenichi Handa <handa@m17n.org>
18
19 * international/mule-cmds.el (set-default-coding-systems): Call
20 ucs-set-table-for-input for all buffers that don't have local
21 value of buffer-file-coding-system.
22
23 * international/ucs-tables.el (ucs-set-table-for-input): If
24 translation-table-for-encode is a symbol, get its
25 translation-table property.
26
272003-12-23 Luc Teirlinck <teirllm@auburn.edu>
28
29 * ffap.el (ffap-read-file-or-url): Eliminate reliance of the call
30 to `completing-read' on a recently fixed bug.
31
32 * fringe.el (fringe-query-style): Suggest `?' in minibuffer prompt,
33 instead of SPACE, to get the list of possible fringe modes. SPACE
34 only works if both `partial-completion-mode' and
35 `completion-auto-help' are nil.
36
37 * complete.el (PC-is-complete-p): delete.
38 (PC-do-completion): Replace all calls to `PC-is-complete-p' with
39 calls to `test-completion'.
40
412003-12-23 Nick Roberts <nick@nick.uklinux.net>
42
43 * progmodes/gud.el (gud-speedbar-buttons): Use speed-bar-edit-line
44 to edit values when there are no children.
45
46 * gdb-ui.el (gdba, gdb-assembler-mode): Call the mode "Machine" as
47 a mode called "Assembler" already exists.
48 (gdb-use-colon-colon-notation, gdb-show-changed-values): New
49 options.
50 (gud-watch): Use format option. Remove font properties from
51 string.
52 (gdb-var-create-handler, gdb-var-list-children-handler): Don't
53 bother about properties as there are none.
54 (gdb-var-create-handler, gdb-var-list-children-handler)
55 (gdb-var-update-handler): Call gdb-var-evaluate-expression-handler
56 with two arguments.
57 (gdb-var-evaluate-expression-handler, gdb-post-prompt): Let
58 speedbar show value changes with a different font.
59 (gdb-edit-value): New defun.
60 (gdb-clear-partial-output, gdb-clear-inferior-io)
61 (def-gdb-auto-update-handler): Use erase-buffer.
62 (gdb-frame-handler): Display watch expressions in
63 FUNCTION::VARIABLE format if required.
64
652003-12-23 John Paul Wallington <jpw@gnu.org>
66
67 * info.el (Info-unescape-quotes, Info-split-parameter-string)
68 (Info-goto-emacs-command-node): Doc fixes.
69
702003-12-03 Kenichi Handa <handa@m17n.org>
71
72 * language/cyrillic.el: Register "microsoft-cp1251" in
73 ctext-non-standard-encodings-alist.
74 ("Bulgarian"): Add ctext-non-standard-encodings.
75 ("Belarusian"): Likewise.
76
77 * international/mule-conf.el (compound-text-with-extensions):
78 Change the type to 2 (iso-2022 base).
79
80 * international/mule.el (ctext-non-standard-encodings-alist):
81 Change the format.
82 (ctext-non-standard-encodings): New variable.
83 (ctext-post-read-conversion): Fully re-written.
84 (ctext-non-standard-designations-alist): Delete it.
85 (ctext-non-standard-encodings-table): New function.
86 (ctext-pre-write-conversion): Fully re-written.
87
62003-11-30 Per Abrahamsen <abraham@dina.kvl.dk> 882003-11-30 Per Abrahamsen <abraham@dina.kvl.dk>
7 89
8 * cus-edit.el (custom-add-parent-links): Add documentation links 90 * cus-edit.el (custom-add-parent-links): Add documentation links
diff --git a/lisp/comint.el b/lisp/comint.el
index 8405e8afcb6..5509e71d984 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2625,11 +2625,13 @@ Magic characters are those in `comint-file-name-quote-list'."
2625 (if (null comint-file-name-quote-list) 2625 (if (null comint-file-name-quote-list)
2626 filename 2626 filename
2627 (let ((regexp 2627 (let ((regexp
2628 (format "\\(^\\|[^\\]\\)\\([%s]\\)" 2628 (format "[%s]"
2629 (mapconcat 'char-to-string comint-file-name-quote-list "")))) 2629 (mapconcat 'char-to-string comint-file-name-quote-list ""))))
2630 (save-match-data 2630 (save-match-data
2631 (while (string-match regexp filename) 2631 (let ((i 0))
2632 (setq filename (replace-match "\\1\\\\\\2" nil nil filename))) 2632 (while (string-match regexp filename i)
2633 (setq filename (replace-match "\\\\\\&" nil nil filename))
2634 (setq i (1+ (match-end 0)))))
2633 filename)))) 2635 filename))))
2634 2636
2635(defun comint-unquote-filename (filename) 2637(defun comint-unquote-filename (filename)
diff --git a/lisp/complete.el b/lisp/complete.el
index 130d0ecb31f..d3c5de459d5 100644
--- a/lisp/complete.el
+++ b/lisp/complete.el
@@ -368,7 +368,7 @@ of `minibuffer-completion-table' and the minibuffer contents.")
368 368
369 ;; Check if buffer contents can already be considered complete 369 ;; Check if buffer contents can already be considered complete
370 (if (and (eq mode 'exit) 370 (if (and (eq mode 'exit)
371 (PC-is-complete-p str table pred)) 371 (test-completion str table pred))
372 'complete 372 'complete
373 373
374 ;; Do substitutions in directory names 374 ;; Do substitutions in directory names
@@ -641,7 +641,7 @@ of `minibuffer-completion-table' and the minibuffer contents.")
641 (if improved 641 (if improved
642 642
643 ;; We changed it... would it be complete without the space? 643 ;; We changed it... would it be complete without the space?
644 (if (PC-is-complete-p (buffer-substring 1 (1- end)) 644 (if (test-completion (buffer-substring 1 (1- end))
645 table pred) 645 table pred)
646 (delete-region (1- end) end))) 646 (delete-region (1- end) end)))
647 647
@@ -649,7 +649,7 @@ of `minibuffer-completion-table' and the minibuffer contents.")
649 649
650 ;; We changed it... enough to be complete? 650 ;; We changed it... enough to be complete?
651 (and (eq mode 'exit) 651 (and (eq mode 'exit)
652 (PC-is-complete-p (field-string) table pred)) 652 (test-completion (field-string) table pred))
653 653
654 ;; If totally ambiguous, display a list of completions 654 ;; If totally ambiguous, display a list of completions
655 (if (or (eq completion-auto-help t) 655 (if (or (eq completion-auto-help t)
@@ -680,20 +680,6 @@ of `minibuffer-completion-table' and the minibuffer contents.")
680 (car poss))))) 680 (car poss)))))
681 t))))) 681 t)))))
682 682
683
684(defun PC-is-complete-p (str table pred)
685 (let ((res (if (listp table)
686 (assoc str table)
687 (if (vectorp table)
688 (or (equal str "nil") ; heh, heh, heh
689 (intern-soft str table))
690 (funcall table str pred 'lambda)))))
691 (and res
692 (or (not pred)
693 (and (not (listp table)) (not (vectorp table)))
694 (funcall pred res))
695 res)))
696
697(defun PC-chop-word (new old) 683(defun PC-chop-word (new old)
698 (let ((i -1) 684 (let ((i -1)
699 (j -1)) 685 (j -1))
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 668700a5c1f..b249ce8daa0 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1216,7 +1216,7 @@ which may actually result in an url rather than a filename."
1216 'ffap-read-file-or-url-internal 1216 'ffap-read-file-or-url-internal
1217 dir 1217 dir
1218 nil 1218 nil
1219 (if dir (cons guess (length dir)) guess) 1219 (if dir (cons guess (1+ (length dir))) guess)
1220 (list 'file-name-history)))) 1220 (list 'file-name-history))))
1221 ;; Do file substitution like (interactive "F"), suggested by MCOOK. 1221 ;; Do file substitution like (interactive "F"), suggested by MCOOK.
1222 (or (ffap-url-p guess) (setq guess (substitute-in-file-name guess))) 1222 (or (ffap-url-p guess) (setq guess (substitute-in-file-name guess)))
diff --git a/lisp/fringe.el b/lisp/fringe.el
index 039a41e5adc..16a21752b58 100644
--- a/lisp/fringe.el
+++ b/lisp/fringe.el
@@ -119,7 +119,7 @@ If ALL-FRAMES, the negation of the fringe values in
119Otherwise the negation of the fringe value in the currently selected 119Otherwise the negation of the fringe value in the currently selected
120frame parameter is used." 120frame parameter is used."
121 (let ((mode (intern (completing-read 121 (let ((mode (intern (completing-read
122 "Select fringe mode for all frames (SPACE for list): " 122 "Select fringe mode for all frames (type ? for list): "
123 '(("none") ("default") ("left-only") 123 '(("none") ("default") ("left-only")
124 ("right-only") ("half") ("minimal")) 124 ("right-only") ("half") ("minimal"))
125 nil t)))) 125 nil t))))
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el
index 8166edd83c7..2c9b3390b58 100644
--- a/lisp/gdb-ui.el
+++ b/lisp/gdb-ui.el
@@ -35,16 +35,15 @@
35 35
36;; Start the debugger with M-x gdba. 36;; Start the debugger with M-x gdba.
37 37
38;; This file is based on gdba.el from GDB 5.0 written by Tom Lord and Jim 38;; This file has evolved from gdba.el from GDB 5.0 written by Tom Lord and Jim
39;; Kingdon and uses GDB's annotation interface. You don't need to know about 39;; Kingdon and uses GDB's annotation interface. You don't need to know about
40;; annotations to use this mode as a debugger, but if you are interested 40;; annotations to use this mode as a debugger, but if you are interested
41;; developing the mode itself, then see the Annotations section in the GDB 41;; developing the mode itself, then see the Annotations section in the GDB
42;; info manual. 42;; info manual. Some GDB/MI commands are also used through th CLI command
43;; 'interpreter mi <mi-command>'.
43;; 44;;
44;; Known Bugs: 45;; Known Bugs:
45;; Does not auto-display arrays of structures or structures containing arrays. 46;;
46;; On MS Windows, Gdb 5.1.1 from MinGW 2.0 does not flush the output from the
47;; inferior.
48 47
49;;; Code: 48;;; Code:
50 49
@@ -121,7 +120,7 @@ The following interactive lisp functions help control operation :
121 (set (make-local-variable 'gud-minor-mode) 'gdba) 120 (set (make-local-variable 'gud-minor-mode) 'gdba)
122 (set (make-local-variable 'gud-marker-filter) 'gud-gdba-marker-filter) 121 (set (make-local-variable 'gud-marker-filter) 'gud-gdba-marker-filter)
123 ;; 122 ;;
124 (gud-def gud-break (if (not (string-equal mode-name "Assembler")) 123 (gud-def gud-break (if (not (string-equal mode-name "Machine"))
125 (gud-call "break %f:%l" arg) 124 (gud-call "break %f:%l" arg)
126 (save-excursion 125 (save-excursion
127 (beginning-of-line) 126 (beginning-of-line)
@@ -129,7 +128,7 @@ The following interactive lisp functions help control operation :
129 (gud-call "break *%a" arg))) 128 (gud-call "break *%a" arg)))
130 "\C-b" "Set breakpoint at current line or address.") 129 "\C-b" "Set breakpoint at current line or address.")
131 ;; 130 ;;
132 (gud-def gud-remove (if (not (string-equal mode-name "Assembler")) 131 (gud-def gud-remove (if (not (string-equal mode-name "Machine"))
133 (gud-call "clear %f:%l" arg) 132 (gud-call "clear %f:%l" arg)
134 (save-excursion 133 (save-excursion
135 (beginning-of-line) 134 (beginning-of-line)
@@ -137,7 +136,7 @@ The following interactive lisp functions help control operation :
137 (gud-call "clear *%a" arg))) 136 (gud-call "clear *%a" arg)))
138 "\C-d" "Remove breakpoint at current line or address.") 137 "\C-d" "Remove breakpoint at current line or address.")
139 ;; 138 ;;
140 (gud-def gud-until (if (not (string-equal mode-name "Assembler")) 139 (gud-def gud-until (if (not (string-equal mode-name "Machine"))
141 (gud-call "until %f:%l" arg) 140 (gud-call "until %f:%l" arg)
142 (save-excursion 141 (save-excursion
143 (beginning-of-line) 142 (beginning-of-line)
@@ -175,15 +174,23 @@ The following interactive lisp functions help control operation :
175 ;; 174 ;;
176 (run-hooks 'gdba-mode-hook)) 175 (run-hooks 'gdba-mode-hook))
177 176
177(defcustom gdb-use-colon-colon-notation t
178 "Non-nil means use FUNCTION::VARIABLE format to display variables in the
179speedbar."
180 :type 'boolean
181 :group 'gud)
182
178(defun gud-watch () 183(defun gud-watch ()
179 "Watch expression at point." 184 "Watch expression at point."
180 (interactive) 185 (interactive)
181 (let ((expr (tooltip-identifier-from-point (point)))) 186 (let ((expr (tooltip-identifier-from-point (point))))
182 (if (string-equal gdb-current-language "c") 187 (if (and (string-equal gdb-current-language "c")
188 gdb-use-colon-colon-notation)
183 (setq expr (concat gdb-current-frame "::" expr))) 189 (setq expr (concat gdb-current-frame "::" expr)))
184 (catch 'already-watched 190 (catch 'already-watched
185 (dolist (var gdb-var-list) 191 (dolist (var gdb-var-list)
186 (if (string-equal expr (car var)) (throw 'already-watched nil))) 192 (if (string-equal expr (car var)) (throw 'already-watched nil)))
193 (set-text-properties 0 (length expr) nil expr)
187 (gdb-enqueue-input 194 (gdb-enqueue-input
188 (list (concat "server interpreter mi \"-var-create - * " expr "\"\n") 195 (list (concat "server interpreter mi \"-var-create - * " expr "\"\n")
189 `(lambda () (gdb-var-create-handler ,expr)))))) 196 `(lambda () (gdb-var-create-handler ,expr))))))
@@ -197,10 +204,10 @@ The following interactive lisp functions help control operation :
197 (goto-char (point-min)) 204 (goto-char (point-min))
198 (if (re-search-forward gdb-var-create-regexp nil t) 205 (if (re-search-forward gdb-var-create-regexp nil t)
199 (let ((var (list expr 206 (let ((var (list expr
200 (match-string-no-properties 1) 207 (match-string 1)
201 (match-string-no-properties 2) 208 (match-string 2)
202 (match-string-no-properties 3) 209 (match-string 3)
203 nil))) 210 nil nil)))
204 (push var gdb-var-list) 211 (push var gdb-var-list)
205 (speedbar 1) 212 (speedbar 1)
206 (if (equal (nth 2 var) "0") 213 (if (equal (nth 2 var) "0")
@@ -208,13 +215,13 @@ The following interactive lisp functions help control operation :
208 (list (concat "server interpreter mi \"-var-evaluate-expression " 215 (list (concat "server interpreter mi \"-var-evaluate-expression "
209 (nth 1 var) "\"\n") 216 (nth 1 var) "\"\n")
210 `(lambda () (gdb-var-evaluate-expression-handler 217 `(lambda () (gdb-var-evaluate-expression-handler
211 ,(nth 1 var))))) 218 ,(nth 1 var) nil))))
212 (setq gdb-var-changed t))) 219 (setq gdb-var-changed t)))
213 (if (re-search-forward "Undefined command" nil t) 220 (if (re-search-forward "Undefined command" nil t)
214 (message "Watching expressions requires gdb 6.0 onwards") 221 (message "Watching expressions requires gdb 6.0 onwards")
215 (message "No symbol %s in current context." expr))))) 222 (message "No symbol %s in current context." expr)))))
216 223
217(defun gdb-var-evaluate-expression-handler (varnum) 224(defun gdb-var-evaluate-expression-handler (varnum changed)
218 (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer) 225 (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer)
219 (goto-char (point-min)) 226 (goto-char (point-min))
220 (re-search-forward ".*value=\"\\(.*?\\)\"" nil t) 227 (re-search-forward ".*value=\"\\(.*?\\)\"" nil t)
@@ -223,7 +230,8 @@ The following interactive lisp functions help control operation :
223 (dolist (var gdb-var-list) 230 (dolist (var gdb-var-list)
224 (if (string-equal varnum (cadr var)) 231 (if (string-equal varnum (cadr var))
225 (progn 232 (progn
226 (setcar (nthcdr 4 var) (match-string-no-properties 1)) 233 (if changed (setcar (nthcdr 5 var) t))
234 (setcar (nthcdr 4 var) (match-string 1))
227 (setcar (nthcdr num gdb-var-list) var) 235 (setcar (nthcdr num gdb-var-list) var)
228 (throw 'var-found nil))) 236 (throw 'var-found nil)))
229 (setq num (+ num 1)))))) 237 (setq num (+ num 1))))))
@@ -247,10 +255,11 @@ The following interactive lisp functions help control operation :
247 (progn 255 (progn
248 (push var var-list) 256 (push var var-list)
249 (while (re-search-forward gdb-var-list-children-regexp nil t) 257 (while (re-search-forward gdb-var-list-children-regexp nil t)
250 (let ((varchild (list (match-string-no-properties 2) 258 (let ((varchild (list (match-string 2)
251 (match-string-no-properties 1) 259 (match-string 1)
252 (match-string-no-properties 3) 260 (match-string 3)
253 (match-string-no-properties 4) 261 (match-string 5)
262 (match-string 4)
254 nil))) 263 nil)))
255 (dolist (var1 gdb-var-list) 264 (dolist (var1 gdb-var-list)
256 (if (string-equal (cadr var1) (cadr varchild)) 265 (if (string-equal (cadr var1) (cadr varchild))
@@ -263,7 +272,7 @@ The following interactive lisp functions help control operation :
263 "server interpreter mi \"-var-evaluate-expression " 272 "server interpreter mi \"-var-evaluate-expression "
264 (nth 1 varchild) "\"\n") 273 (nth 1 varchild) "\"\n")
265 `(lambda () (gdb-var-evaluate-expression-handler 274 `(lambda () (gdb-var-evaluate-expression-handler
266 ,(nth 1 varchild))))))))) 275 ,(nth 1 varchild) nil))))))))
267 (push var var-list))) 276 (push var var-list)))
268 (setq gdb-var-list (nreverse var-list)))))) 277 (setq gdb-var-list (nreverse var-list))))))
269 278
@@ -281,12 +290,12 @@ The following interactive lisp functions help control operation :
281 (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer) 290 (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer)
282 (goto-char (point-min)) 291 (goto-char (point-min))
283 (while (re-search-forward gdb-var-update-regexp nil t) 292 (while (re-search-forward gdb-var-update-regexp nil t)
284 (let ((varnum (match-string-no-properties 1))) 293 (let ((varnum (match-string 1)))
285 (gdb-enqueue-input 294 (gdb-enqueue-input
286 (list (concat "server interpreter mi \"-var-evaluate-expression " 295 (list (concat "server interpreter mi \"-var-evaluate-expression "
287 varnum "\"\n") 296 varnum "\"\n")
288 `(lambda () (gdb-var-evaluate-expression-handler 297 `(lambda () (gdb-var-evaluate-expression-handler
289 ,varnum))))))) 298 ,varnum t)))))))
290 (gdb-set-pending-triggers 299 (gdb-set-pending-triggers
291 (delq 'gdb-var-update (gdb-get-pending-triggers)))) 300 (delq 'gdb-var-update (gdb-get-pending-triggers))))
292 301
@@ -299,7 +308,7 @@ The following interactive lisp functions help control operation :
299 (var (assoc expr gdb-var-list)) 308 (var (assoc expr gdb-var-list))
300 (varnum (cadr var))) 309 (varnum (cadr var)))
301 (gdb-enqueue-input 310 (gdb-enqueue-input
302 (list (concat "server interpreter mi \"-var-delete " varnum "\"\n") 311 (list (concat "server interpreter mi \"-var-delete " varnum "\"\n")
303 'ignore)) 312 'ignore))
304 (setq gdb-var-list (delq var gdb-var-list)) 313 (setq gdb-var-list (delq var gdb-var-list))
305 (dolist (varchild gdb-var-list) 314 (dolist (varchild gdb-var-list)
@@ -307,6 +316,23 @@ The following interactive lisp functions help control operation :
307 (setq gdb-var-list (delq varchild gdb-var-list))))) 316 (setq gdb-var-list (delq varchild gdb-var-list)))))
308 (setq gdb-var-changed t))) 317 (setq gdb-var-changed t)))
309 318
319(defun gdb-edit-value (text token indent)
320 "Assign a value to a variable displayed in the speedbar"
321 (interactive)
322 (let* ((var (nth (- (count-lines (point-min) (point)) 2) gdb-var-list))
323 (varnum (cadr var)) (value))
324 (setq value (read-string "New value: "))
325 (gdb-enqueue-input
326 (list (concat "server interpreter mi \"-var-assign "
327 varnum " " value "\"\n")
328 'ignore))))
329
330(defcustom gdb-show-changed-values t
331 "Non-nil means use font-lock-warning-face to display values that have
332recently changed in the speedbar."
333 :type 'boolean
334 :group 'gud)
335
310(defun gdb-speedbar-expand-node (text token indent) 336(defun gdb-speedbar-expand-node (text token indent)
311 "Expand the node the user clicked on. 337 "Expand the node the user clicked on.
312TEXT is the text of the button we clicked on, a + or - item. 338TEXT is the text of the button we clicked on, a + or - item.
@@ -732,6 +758,11 @@ output from the current command if that happens to be appropriate."
732 (gdb-invalidate-registers) 758 (gdb-invalidate-registers)
733 (gdb-invalidate-locals) 759 (gdb-invalidate-locals)
734 (gdb-invalidate-threads) 760 (gdb-invalidate-threads)
761 (dolist (frame (frame-list))
762 (when (string-equal (frame-parameter frame 'name) "Speedbar")
763 (setq gdb-var-changed t) ; force update
764 (dolist (var gdb-var-list)
765 (setcar (nthcdr 5 var) nil))))
735 (gdb-var-update))) 766 (gdb-var-update)))
736 (let ((sink (gdb-get-output-sink))) 767 (let ((sink (gdb-get-output-sink)))
737 (cond 768 (cond
@@ -822,7 +853,7 @@ output from the current command if that happens to be appropriate."
822 853
823(defun gdb-clear-partial-output () 854(defun gdb-clear-partial-output ()
824 (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer) 855 (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer)
825 (delete-region (point-min) (point-max)))) 856 (erase-buffer)))
826 857
827(defun gdb-append-to-inferior-io (string) 858(defun gdb-append-to-inferior-io (string)
828 (with-current-buffer (gdb-get-create-buffer 'gdb-inferior-io) 859 (with-current-buffer (gdb-get-create-buffer 'gdb-inferior-io)
@@ -833,7 +864,7 @@ output from the current command if that happens to be appropriate."
833 864
834(defun gdb-clear-inferior-io () 865(defun gdb-clear-inferior-io ()
835 (with-current-buffer (gdb-get-create-buffer 'gdb-inferior-io) 866 (with-current-buffer (gdb-get-create-buffer 'gdb-inferior-io)
836 (delete-region (point-min) (point-max)))) 867 (erase-buffer)))
837 868
838 869
839;; One trick is to have a command who's output is always available in a buffer 870;; One trick is to have a command who's output is always available in a buffer
@@ -883,7 +914,7 @@ output from the current command if that happens to be appropriate."
883 (with-current-buffer buf 914 (with-current-buffer buf
884 (let ((p (point)) 915 (let ((p (point))
885 (buffer-read-only nil)) 916 (buffer-read-only nil))
886 (delete-region (point-min) (point-max)) 917 (erase-buffer)
887 (insert-buffer-substring (gdb-get-create-buffer 918 (insert-buffer-substring (gdb-get-create-buffer
888 'gdb-partial-output-buffer)) 919 'gdb-partial-output-buffer))
889 (goto-char p))))) 920 (goto-char p)))))
@@ -1258,7 +1289,7 @@ the source buffer."
1258 1289
1259(def-gdb-auto-updated-buffer gdb-threads-buffer 1290(def-gdb-auto-updated-buffer gdb-threads-buffer
1260 gdb-invalidate-threads 1291 gdb-invalidate-threads
1261 "info threads\n" 1292 "server info threads\n"
1262 gdb-info-threads-handler 1293 gdb-info-threads-handler
1263 gdb-info-threads-custom) 1294 gdb-info-threads-custom)
1264 1295
@@ -1308,7 +1339,6 @@ the source buffer."
1308 (re-search-backward "^\\s-*\\([0-9]*\\)" nil t) 1339 (re-search-backward "^\\s-*\\([0-9]*\\)" nil t)
1309 (match-string-no-properties 1))) 1340 (match-string-no-properties 1)))
1310 1341
1311
1312(defun gdb-threads-select () 1342(defun gdb-threads-select ()
1313 "Make the thread on the current line become the current thread and display the 1343 "Make the thread on the current line become the current thread and display the
1314source in the source buffer." 1344source in the source buffer."
@@ -1506,7 +1536,7 @@ the source buffer."
1506 (define-key menu [frames] '("Stack" . gdb-frame-stack-buffer)) 1536 (define-key menu [frames] '("Stack" . gdb-frame-stack-buffer))
1507 (define-key menu [breakpoints] '("Breakpoints" . gdb-frame-breakpoints-buffer)) 1537 (define-key menu [breakpoints] '("Breakpoints" . gdb-frame-breakpoints-buffer))
1508 (define-key menu [threads] '("Threads" . gdb-frame-threads-buffer)) 1538 (define-key menu [threads] '("Threads" . gdb-frame-threads-buffer))
1509; (define-key menu [assembler] '("Assembler" . gdb-frame-assembler-buffer)) 1539; (define-key menu [assembler] '("Machine" . gdb-frame-assembler-buffer))
1510) 1540)
1511 1541
1512(let ((menu (make-sparse-keymap "GDB-Windows"))) 1542(let ((menu (make-sparse-keymap "GDB-Windows")))
@@ -1518,7 +1548,7 @@ the source buffer."
1518 (define-key menu [frames] '("Stack" . gdb-display-stack-buffer)) 1548 (define-key menu [frames] '("Stack" . gdb-display-stack-buffer))
1519 (define-key menu [breakpoints] '("Breakpoints" . gdb-display-breakpoints-buffer)) 1549 (define-key menu [breakpoints] '("Breakpoints" . gdb-display-breakpoints-buffer))
1520 (define-key menu [threads] '("Threads" . gdb-display-threads-buffer)) 1550 (define-key menu [threads] '("Threads" . gdb-display-threads-buffer))
1521; (define-key menu [assembler] '("Assembler" . gdb-display-assembler-buffer)) 1551; (define-key menu [assembler] '("Machine" . gdb-display-assembler-buffer))
1522) 1552)
1523 1553
1524(let ((menu (make-sparse-keymap "View"))) 1554(let ((menu (make-sparse-keymap "View")))
@@ -1527,7 +1557,7 @@ the source buffer."
1527; (define-key menu [both] '(menu-item "Both" gdb-view-both 1557; (define-key menu [both] '(menu-item "Both" gdb-view-both
1528; :help "Display both source and assembler" 1558; :help "Display both source and assembler"
1529; :button (:radio . (eq gdb-selected-view 'both)))) 1559; :button (:radio . (eq gdb-selected-view 'both))))
1530 (define-key menu [assembler] '(menu-item "Assembler" gdb-view-assembler 1560 (define-key menu [assembler] '(menu-item "Machine" gdb-view-assembler
1531 :help "Display assembler only" 1561 :help "Display assembler only"
1532 :button (:radio . (eq gdb-selected-view 'assembler)))) 1562 :button (:radio . (eq gdb-selected-view 'assembler))))
1533 (define-key menu [source] '(menu-item "Source" gdb-view-source-function 1563 (define-key menu [source] '(menu-item "Source" gdb-view-source-function
@@ -1829,7 +1859,7 @@ BUFFER nil or omitted means use the current buffer."
1829 1859
1830\\{gdb-assembler-mode-map}" 1860\\{gdb-assembler-mode-map}"
1831 (setq major-mode 'gdb-assembler-mode) 1861 (setq major-mode 'gdb-assembler-mode)
1832 (setq mode-name "Assembler") 1862 (setq mode-name "Machine")
1833 (setq left-margin-width 2) 1863 (setq left-margin-width 2)
1834 (setq fringes-outside-margins t) 1864 (setq fringes-outside-margins t)
1835 (setq buffer-read-only t) 1865 (setq buffer-read-only t)
@@ -1910,7 +1940,8 @@ BUFFER nil or omitted means use the current buffer."
1910 (gdb-get-create-buffer 'gdb-assembler-buffer)) 1940 (gdb-get-create-buffer 'gdb-assembler-buffer))
1911 ;;update with new frame for machine code if necessary 1941 ;;update with new frame for machine code if necessary
1912 (gdb-invalidate-assembler)))))) 1942 (gdb-invalidate-assembler))))))
1913 (if (looking-at "source language \\(\\S-*\\)") 1943 (forward-line)
1944 (if (looking-at " source language \\(\\S-*\\)\.")
1914 (setq gdb-current-language (match-string 1)))) 1945 (setq gdb-current-language (match-string 1))))
1915 1946
1916(provide 'gdb-ui) 1947(provide 'gdb-ui)
diff --git a/lisp/info.el b/lisp/info.el
index 47af5bb8154..9616dbb1feb 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1086,7 +1086,7 @@ a case-insensitive match is tried."
1086 (+ (- nodepos lastfilepos) (point))))) 1086 (+ (- nodepos lastfilepos) (point)))))
1087 1087
1088(defun Info-unescape-quotes (value) 1088(defun Info-unescape-quotes (value)
1089 "Unescape double quotes and backslashes in VALUE" 1089 "Unescape double quotes and backslashes in VALUE."
1090 (let ((start 0) 1090 (let ((start 0)
1091 (unquote value)) 1091 (unquote value))
1092 (while (string-match "[^\\\"]*\\(\\\\\\)[\\\\\"]" unquote start) 1092 (while (string-match "[^\\\"]*\\(\\\\\\)[\\\\\"]" unquote start)
@@ -1099,10 +1099,9 @@ a case-insensitive match is tried."
1099;; into the Info file for handling images. 1099;; into the Info file for handling images.
1100(defun Info-split-parameter-string (parameter-string) 1100(defun Info-split-parameter-string (parameter-string)
1101 "Return alist of (\"KEY\" . \"VALUE\") from PARAMETER-STRING; a 1101 "Return alist of (\"KEY\" . \"VALUE\") from PARAMETER-STRING; a
1102 whitespace separated list of KEY=VALUE pairs. If VALUE 1102whitespace separated list of KEY=VALUE pairs. If VALUE contains
1103 contains whitespace or double quotes, it must be quoted in 1103whitespace or double quotes, it must be quoted in double quotes and
1104 double quotes and any double quotes or backslashes must be 1104any double quotes or backslashes must be escaped (\\\",\\\\)."
1105 escaped (\\\",\\\\)."
1106 (let ((start 0) 1105 (let ((start 0)
1107 (parameter-alist)) 1106 (parameter-alist))
1108 (while (string-match 1107 (while (string-match
@@ -2683,12 +2682,12 @@ The locations are of the format used in `Info-history', i.e.
2683 "Go to the Info node in the Emacs manual for command COMMAND. 2682 "Go to the Info node in the Emacs manual for command COMMAND.
2684The command is found by looking up in Emacs manual's indices 2683The command is found by looking up in Emacs manual's indices
2685or in another manual found via COMMAND's `info-file' property or 2684or in another manual found via COMMAND's `info-file' property or
2686the variable `Info-file-list-for-emacs'. COMMAND must be a symbol 2685the variable `Info-file-list-for-emacs'.
2687or string." 2686COMMAND must be a symbol or string."
2688 (interactive "CFind documentation for command: ") 2687 (interactive "CFind documentation for command: ")
2689 ;; If command is given as a string, convert it to a symbol. 2688 ;; If command is given as a string, convert it to a symbol.
2690 (if (stringp command) 2689 (if (stringp command)
2691 (setq command (intern command))) 2690 (setq command (intern command)))
2692 (or (commandp command) 2691 (or (commandp command)
2693 (signal 'wrong-type-argument (list 'commandp command))) 2692 (signal 'wrong-type-argument (list 'commandp command)))
2694 (let ((where (Info-find-emacs-command-nodes command))) 2693 (let ((where (Info-find-emacs-command-nodes command)))
@@ -2785,9 +2784,9 @@ Preserve text properties."
2785 (setq mb (match-beginning 0) 2784 (setq mb (match-beginning 0)
2786 me (1+ mb) 2785 me (1+ mb)
2787 m (substring string mb me) 2786 m (substring string mb me)
2788 matches (cons m 2787 matches (cons m
2789 (cons m 2788 (cons m
2790 (cons (substring string start mb) 2789 (cons (substring string start mb)
2791 matches))) 2790 matches)))
2792 start me)) 2791 start me))
2793 (push (substring string start end) matches) 2792 (push (substring string start end) matches)
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index a9ed8299ad9..5e957d6b8ab 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -321,6 +321,11 @@ This also sets the following values:
321 o default value for the command `set-keyboard-coding-system'." 321 o default value for the command `set-keyboard-coding-system'."
322 (check-coding-system coding-system) 322 (check-coding-system coding-system)
323 (setq-default buffer-file-coding-system coding-system) 323 (setq-default buffer-file-coding-system coding-system)
324 (if (fboundp 'ucs-set-table-for-input)
325 (dolist (buffer (buffer-list))
326 (or (local-variable-p 'buffer-file-coding-system buffer)
327 (ucs-set-table-for-input buffer))))
328
324 (if default-enable-multibyte-characters 329 (if default-enable-multibyte-characters
325 (setq default-file-name-coding-system coding-system)) 330 (setq default-file-name-coding-system coding-system))
326 ;; If coding-system is nil, honor that on MS-DOS as well, so 331 ;; If coding-system is nil, honor that on MS-DOS as well, so
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index 53a02e5caef..d160e4107f0 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -442,12 +442,16 @@ Like `compound-text', but does not produce escape sequences for compositions."
442 '((safe-charsets . t))) 442 '((safe-charsets . t)))
443 443
444(make-coding-system 444(make-coding-system
445 'compound-text-with-extensions 5 ?x 445 'compound-text-with-extensions 2 ?x
446 "Compound text encoding with extended segments. 446 "Compound text encoding with extended segments.
447 447
448See the variable `ctext-non-standard-encodings-alist' for the
449detail about how extended segments are handled.
450
448This coding system should be used only for X selections. It is inappropriate 451This coding system should be used only for X selections. It is inappropriate
449for decoding and encoding files, process I/O, etc." 452for decoding and encoding files, process I/O, etc."
450 nil 453 '((ascii t) (latin-iso8859-1 katakana-jisx0201 t) t t
454 nil ascii-eol ascii-cntl)
451 '((post-read-conversion . ctext-post-read-conversion) 455 '((post-read-conversion . ctext-post-read-conversion)
452 (pre-write-conversion . ctext-pre-write-conversion))) 456 (pre-write-conversion . ctext-pre-write-conversion)))
453 457
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 2c7160b381b..1674f7bf61a 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1330,12 +1330,42 @@ ARG is a list of coding categories ordered by priority."
1330;;; X selections 1330;;; X selections
1331 1331
1332(defvar ctext-non-standard-encodings-alist 1332(defvar ctext-non-standard-encodings-alist
1333 '(("ISO8859-15" . iso-8859-15) 1333 '(("big5-0" big5 2 (chinese-big5-1 chinese-big5-2))
1334 ("ISO8859-14" . iso-8859-14) 1334 ("ISO8859-14" iso-8859-14 1 latin-iso8859-14)
1335 ("KOI8-R" . koi8-r) 1335 ("ISO8859-15" iso-8859-15 1 latin-iso8859-15))
1336 ("BIG5-0" . big5)) 1336 "Alist of non-standard encoding names vs the corresponding usages in CTEXT.
1337 "Alist of non-standard encoding names vs Emacs coding systems. 1337
1338This alist is used to decode an extened segment of a compound text.") 1338It controls how extended segments of a compound text are handled
1339by the coding system `compound-text-with-extensions'.
1340
1341Each element has the form (ENCODING-NAME CODING-SYSTEM N-OCTET CHARSET).
1342
1343ENCODING-NAME is an encoding name of an \"extended segments\".
1344
1345CODING-SYSTEM is the coding-system to encode (or decode) the
1346characters into (or from) the extended segment.
1347
1348N-OCTET is the number of octets (bytes) that encodes a character
1349in the segment. It can be 0 (meaning the number of octets per
1350character is variable), 1, 2, 3, or 4.
1351
1352CHARSET is a charater set containing characters that are encoded
1353in the segment. It can be a list of character sets. It can also
1354be a char-table, in which case characters that have non-nil value
1355in the char-table are the target.
1356
1357On decoding CTEXT, all encoding names listed here are recognized.
1358
1359On encoding CTEXT, encoding names in the variable
1360`ctext-non-standard-encodings' (which see) and in the information
1361listed for the current language environment under the key
1362`ctext-non-standard-encodings' are used.")
1363
1364(defvar ctext-non-standard-encodings
1365 '("big5-0")
1366 "List of non-standard encoding names used in extended segments of CTEXT.
1367Each element must be one of the names listed in the variable
1368`ctext-non-standard-encodings-alist' (which see).")
1339 1369
1340(defvar ctext-non-standard-encodings-regexp 1370(defvar ctext-non-standard-encodings-regexp
1341 (string-to-multibyte 1371 (string-to-multibyte
@@ -1347,13 +1377,9 @@ This alist is used to decode an extened segment of a compound text.")
1347 "\\(\e%G[^\e]*\e%@\\)"))) 1377 "\\(\e%G[^\e]*\e%@\\)")))
1348 1378
1349;; Functions to support "Non-Standard Character Set Encodings" defined 1379;; Functions to support "Non-Standard Character Set Encodings" defined
1350;; by the COMPOUND-TEXT spec. 1380;; by the COMPOUND-TEXT spec. They also support "The UTF-8 encoding"
1351;; We support that by decoding the whole data by `ctext' which just 1381;; described in the section 7 of the documentation of COMPOUND-TEXT
1352;; pertains byte sequences belonging to ``extended segment'', then 1382;; distributed with XFree86.
1353;; decoding those byte sequences one by one in Lisp.
1354;; This function also supports "The UTF-8 encoding" described in the
1355;; section 7 of the documentation fo COMPOUND-TEXT distributed with
1356;; XFree86.
1357 1383
1358(defun ctext-post-read-conversion (len) 1384(defun ctext-post-read-conversion (len)
1359 "Decode LEN characters encoded as Compound Text with Extended Segments." 1385 "Decode LEN characters encoded as Compound Text with Extended Segments."
@@ -1365,7 +1391,6 @@ This alist is used to decode an extened segment of a compound text.")
1365 pos bytes) 1391 pos bytes)
1366 (or in-workbuf 1392 (or in-workbuf
1367 (narrow-to-region (point) (+ (point) len))) 1393 (narrow-to-region (point) (+ (point) len)))
1368 (decode-coding-region (point-min) (point-max) 'ctext)
1369 (if in-workbuf 1394 (if in-workbuf
1370 (set-buffer-multibyte t)) 1395 (set-buffer-multibyte t))
1371 (while (re-search-forward ctext-non-standard-encodings-regexp 1396 (while (re-search-forward ctext-non-standard-encodings-regexp
@@ -1376,11 +1401,14 @@ This alist is used to decode an extened segment of a compound text.")
1376 (let* ((M (char-after (+ pos 4))) 1401 (let* ((M (char-after (+ pos 4)))
1377 (L (char-after (+ pos 5))) 1402 (L (char-after (+ pos 5)))
1378 (encoding (match-string 2)) 1403 (encoding (match-string 2))
1379 (coding (or (cdr (assoc-ignore-case 1404 (encoding-info (assoc-ignore-case
1380 encoding 1405 encoding
1381 ctext-non-standard-encodings-alist)) 1406 ctext-non-standard-encodings-alist))
1382 (coding-system-p 1407 (coding (if encoding-info
1383 (intern (downcase encoding)))))) 1408 (nth 1 encoding-info)
1409 (setq encoding (intern (downcase encoding)))
1410 (and (coding-system-p encoding)
1411 encoding))))
1384 (setq bytes (- (+ (* (- M 128) 128) (- L 128)) 1412 (setq bytes (- (+ (* (- M 128) 128) (- L 128))
1385 (- (point) (+ pos 6)))) 1413 (- (point) (+ pos 6))))
1386 (when coding 1414 (when coding
@@ -1388,66 +1416,39 @@ This alist is used to decode an extened segment of a compound text.")
1388 (forward-char bytes) 1416 (forward-char bytes)
1389 (decode-coding-region (- (point) bytes) (point) coding))) 1417 (decode-coding-region (- (point) bytes) (point) coding)))
1390 ;; ESC % G --UTF-8-BYTES-- ESC % @ 1418 ;; ESC % G --UTF-8-BYTES-- ESC % @
1391 (setq bytes (- (point) pos)) 1419 (delete-char -3)
1392 (decode-coding-region (- (point) bytes) (point) 'utf-8)))) 1420 (delete-region pos (+ pos 3))
1421 (decode-coding-region pos (point) 'utf-8))))
1393 (goto-char (point-min)) 1422 (goto-char (point-min))
1394 (- (point-max) (point))))) 1423 (- (point-max) (point)))))
1395 1424
1396;; From X registry 2001/06/01 1425;; Return a char table of extended segment usage for each character.
1397;; 20. NON-STANDARD CHARACTER SET ENCODINGS 1426;; Each value of the char table is nil, one of the elements of
1398 1427;; `ctext-non-standard-encodings-alist', or the symbol `utf-8'.
1399;; See Section 6 of the Compound Text standard. 1428
1400 1429(defun ctext-non-standard-encodings-table ()
1401;; Name Reference 1430 (let ((table (make-char-table 'translation-table)))
1402;; ---- --------- 1431 (aset table (make-char 'mule-unicode-0100-24ff) 'utf-8)
1403;; "DEC.CNS11643.1986-2" [53] 1432 (aset table (make-char 'mule-unicode-2500-33ff) 'utf-8)
1404;; CNS11643 2-plane using the recommended 1433 (aset table (make-char 'mule-unicode-e000-ffff) 'utf-8)
1405;; internal representation scheme 1434 (dolist (encoding (reverse
1406;; "DEC.DTSCS.1990-2" [54] 1435 (append
1407;; DEC Taiwan Supplemental Character Set 1436 (get-language-info current-language-environment
1408;; "fujitsu.u90x03" [87] 1437 'ctext-non-standard-encodings)
1409;; "ILA" [62] 1438 ctext-non-standard-encodings)))
1410;; registry prefix 1439 (let* ((slot (assoc encoding ctext-non-standard-encodings-alist))
1411;; "IPSYS" [59] 1440 (charset (nth 3 slot)))
1412;; registry prefix 1441 (if charset
1413;; "omron_UDC" [45] 1442 (cond ((charsetp charset)
1414;; omron User Defined Charset 1443 (aset table (make-char charset) slot))
1415;; "omron_UDC_ja" [45] 1444 ((listp charset)
1416;; omron User Defined Charset for Japanese 1445 (dolist (elt charset)
1417;; "omron_UDC_zh" [45] 1446 (aset table (make-char elt) slot)))
1418;; omron User Defined Charset for Chinese(Main land) 1447 ((char-table-p charset)
1419;; "omron_UDC_tw" [45] 1448 (map-char-table #'(lambda (k v)
1420;; omron User Defined Charset for Chinese(Taiwan) 1449 (if (and v (> k 128)) (aset table k slot)))
1421 1450 charset))))))
1422;; If you add charsets here, be sure to modify the regexp used by 1451 table))
1423;; ctext-pre-write-conversion to look up non-standard charsets.
1424(defvar ctext-non-standard-designations-alist
1425 '(("$(0" . (big5 "big5-0" 2))
1426 ("$(1" . (big5 "big5-0" 2))
1427 ;; The following are actually standard; generating extended
1428 ;; segments for them is wrong and screws e.g. Latin-9 users.
1429 ;; 8859-{10,13,16} aren't Emacs charsets anyhow. -- fx
1430;; ("-V" . (t "iso8859-10" 1))
1431;; ("-Y" . (t "iso8859-13" 1))
1432;; ("-_" . (t "iso8859-14" 1))
1433;; ("-b" . (t "iso8859-15" 1))
1434;; ("-f" . (t "iso8859-16" 1))
1435 )
1436 "Alist of ctext control sequences that introduce character sets which
1437are not in the list of approved encodings, and the corresponding
1438coding system, identifier string, and number of octets per encoded
1439character.
1440
1441Each element has the form (CTLSEQ . (ENCODING CHARSET NOCTETS)). CTLSEQ
1442is the control sequence (sans the leading ESC) that introduces the character
1443set in the text encoded by compound-text. ENCODING is a coding system
1444symbol; if it is t, it means that the ctext coding system already encodes
1445the text correctly, and only the leading control sequence needs to be altered.
1446If ENCODING is a coding system, we need to re-encode the text with that
1447coding system. CHARSET is the name of the charset we need to put into
1448the leading control sequence. NOCTETS is the number of octets (bytes) that
1449encode each character in this charset. NOCTETS can be 0 (meaning the number
1450of octets per character is variable), 1, 2, 3, or 4.")
1451 1452
1452(defun ctext-pre-write-conversion (from to) 1453(defun ctext-pre-write-conversion (from to)
1453 "Encode characters between FROM and TO as Compound Text w/Extended Segments. 1454 "Encode characters between FROM and TO as Compound Text w/Extended Segments.
@@ -1470,47 +1471,56 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place."
1470 (insert-buffer-substring buf from to)))) 1471 (insert-buffer-substring buf from to))))
1471 1472
1472 ;; Now we can encode the whole buffer. 1473 ;; Now we can encode the whole buffer.
1473 (let ((case-fold-search nil) 1474 (let ((encoding-table (ctext-non-standard-encodings-table))
1474 last-coding-system-used 1475 last-coding-system-used
1475 pos posend desig encode-info encoding chset noctets textlen) 1476 last-pos last-encoding-info
1476 (goto-char (point-min)) 1477 encoding-info end-pos)
1477 ;; At first encode the whole buffer. 1478 (goto-char (setq last-pos (point-min)))
1478 (encode-coding-region (point-min) (point-max) 'ctext-no-compositions) 1479 (setq end-pos (point-marker))
1479 ;; Then replace ISO-2022 charset designations with extended 1480 (while (re-search-forward "[^\000-\177]+" nil t)
1480 ;; segments, for those charsets that are not part of the 1481 ;; Found a sequence of non-ASCII characters.
1481 ;; official X registry. The regexp below finds the leading 1482 (setq last-pos (match-beginning 0)
1482 ;; sequences for big5. 1483 last-encoding-info (aref encoding-table (char-after last-pos)))
1483 (while (re-search-forward "\e\\(\$([01]\\)" nil 'move) 1484 (set-marker end-pos (match-end 0))
1484 (setq pos (match-beginning 0) 1485 (goto-char (1+ last-pos))
1485 posend (point) 1486 (catch 'tag
1486 desig (match-string 1) 1487 (while t
1487 encode-info (cdr (assoc desig 1488 (setq encoding-info
1488 ctext-non-standard-designations-alist)) 1489 (if (< (point) end-pos)
1489 encoding (car encode-info) 1490 (aref encoding-table (following-char))))
1490 chset (cadr encode-info) 1491 (unless (eq last-encoding-info encoding-info)
1491 noctets (car (cddr encode-info))) 1492 (cond ((consp last-encoding-info)
1492 (skip-chars-forward "^\e") 1493 ;; Encode the previous range using an extended
1493 (cond 1494 ;; segment.
1494 ((eq encoding t) ; only the leading sequence needs to be changed 1495 (let ((encoding-name (car last-encoding-info))
1495 (setq textlen (+ (- (point) posend) (length chset) 1)) 1496 (coding-system (nth 1 last-encoding-info))
1496 ;; Generate the control sequence for an extended segment. 1497 (noctets (nth 2 last-encoding-info))
1497 (replace-match (format "\e%%/%d%c%c%s" 1498 len)
1498 noctets 1499 (encode-coding-region last-pos (point) coding-system)
1499 (+ (/ textlen 128) 128) 1500 (setq len (+ (length encoding-name) 1
1500 (+ (% textlen 128) 128) 1501 (- (point) last-pos)))
1501 chset) 1502 (save-excursion
1502 t t)) 1503 (goto-char last-pos)
1503 ((coding-system-p encoding) ; need to recode the entire segment... 1504 (insert (string-to-multibyte
1504 (decode-coding-region pos (point) 'ctext-no-compositions) 1505 (format "\e%%/%d%c%c%s"
1505 (encode-coding-region pos (point) encoding) 1506 noctets
1506 (setq textlen (+ (- (point) pos) (length chset) 1)) 1507 (+ (/ len 128) 128)
1507 (save-excursion 1508 (+ (% len 128) 128)
1508 (goto-char pos) 1509 encoding-name))))))
1509 (insert (format "\e%%/%d%c%c%s" 1510 ((eq last-encoding-info 'utf-8)
1510 noctets 1511 ;; Encode the previous range using UTF-8 encoding
1511 (+ (/ textlen 128) 128) 1512 ;; extention.
1512 (+ (% textlen 128) 128) 1513 (encode-coding-region last-pos (point) 'mule-utf-8)
1513 chset)))))) 1514 (save-excursion
1515 (goto-char last-pos)
1516 (insert "\e%G"))
1517 (insert "\e%@")))
1518 (setq last-pos (point)
1519 last-encoding-info encoding-info))
1520 (if (< (point) end-pos)
1521 (forward-char 1)
1522 (throw 'tag nil)))))
1523 (set-marker end-pos nil)
1514 (goto-char (point-min)))) 1524 (goto-char (point-min))))
1515 ;; Must return nil, as build_annotations_2 expects that. 1525 ;; Must return nil, as build_annotations_2 expects that.
1516 nil) 1526 nil)
diff --git a/lisp/international/ucs-tables.el b/lisp/international/ucs-tables.el
index d91a4b9fbf2..476c8dfc191 100644
--- a/lisp/international/ucs-tables.el
+++ b/lisp/international/ucs-tables.el
@@ -2507,6 +2507,8 @@ BUFFER defaults to the current buffer."
2507 (coding-system-base default-buffer-file-coding-system)))) 2507 (coding-system-base default-buffer-file-coding-system))))
2508 (when cs 2508 (when cs
2509 (setq table (coding-system-get cs 'translation-table-for-encode)) 2509 (setq table (coding-system-get cs 'translation-table-for-encode))
2510 (if (and table (symbolp table))
2511 (setq table (get table 'translation-table)))
2510 (unless (char-table-p table) 2512 (unless (char-table-p table)
2511 (setq table (coding-system-get cs 'translation-table-for-input))) 2513 (setq table (coding-system-get cs 'translation-table-for-input)))
2512 (when (char-table-p table) 2514 (when (char-table-p table)
diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el
index ad3ab940492..19ff671834b 100644
--- a/lisp/language/cyrillic.el
+++ b/lisp/language/cyrillic.el
@@ -465,9 +465,17 @@ Support for Russian using koi8-r and the russian-computer input method.")
465 465
466(define-coding-system-alias 'cp1251 'windows-1251) 466(define-coding-system-alias 'cp1251 'windows-1251)
467 467
468(let ((elt `("microsoft-cp1251" windows-1251 1
469 ,(get 'encode-windows-1251 'translation-table)))
470 (slot (assoc "microsoft-cp1251" ctext-non-standard-encodings-alist)))
471 (if slot
472 (setcdr slot (cdr elt))
473 (push elt ctext-non-standard-encodings-alist)))
474
468(set-language-info-alist 475(set-language-info-alist
469 "Bulgarian" `((coding-system windows-1251) 476 "Bulgarian" `((coding-system windows-1251)
470 (coding-priority windows-1251) 477 (coding-priority windows-1251)
478 (ctext-non-standard-encodings "microsoft-cp1251")
471 (nonascii-translation 479 (nonascii-translation
472 . ,(get 'decode-windows-1251 'translation-table)) 480 . ,(get 'decode-windows-1251 'translation-table))
473 (input-method . "bulgarian-bds") 481 (input-method . "bulgarian-bds")
@@ -479,6 +487,7 @@ Support for Russian using koi8-r and the russian-computer input method.")
479(set-language-info-alist 487(set-language-info-alist
480 "Belarusian" `((coding-system windows-1251) 488 "Belarusian" `((coding-system windows-1251)
481 (coding-priority windows-1251) 489 (coding-priority windows-1251)
490 (ctext-non-standard-encodings "microsoft-cp1251")
482 (nonascii-translation 491 (nonascii-translation
483 . ,(get 'decode-windows-1251 'translation-table)) 492 . ,(get 'decode-windows-1251 'translation-table))
484 (input-method . "belarusian") 493 (input-method . "belarusian")
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 61fa0fad845..1d58bcd732c 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -326,7 +326,7 @@ off the specialized speedbar mode."
326 (goto-char (point-min)) 326 (goto-char (point-min))
327 (let ((case-fold-search t)) 327 (let ((case-fold-search t))
328 (looking-at "Watch Expressions:"))))) 328 (looking-at "Watch Expressions:")))))
329 (erase-buffer) 329 (erase-buffer)
330 (insert "Watch Expressions:\n") 330 (insert "Watch Expressions:\n")
331 (let ((var-list gdb-var-list)) 331 (let ((var-list gdb-var-list))
332 (while var-list 332 (while var-list
@@ -337,17 +337,21 @@ off the specialized speedbar mode."
337 start (1+ (match-beginning 0)))) 337 start (1+ (match-beginning 0))))
338 (if (equal (nth 2 var) "0") 338 (if (equal (nth 2 var) "0")
339 (speedbar-make-tag-line 'bracket ?? nil nil 339 (speedbar-make-tag-line 'bracket ?? nil nil
340 (concat (car var) " " (nth 4 var)) 340 (concat (car var) "\t" (nth 4 var))
341 'gdb-var-delete 341 'gdb-edit-value
342 nil 'speedbar-directory-face depth) 342 nil
343 (if (and (nth 5 var)
344 gdb-show-changed-values)
345 'font-lock-warning-face
346 nil) depth)
343 (if (and (cadr var-list) 347 (if (and (cadr var-list)
344 (string-match varnum (cadr (cadr var-list)))) 348 (string-match varnum (cadr (cadr var-list))))
345 (setq char ?-)) 349 (setq char ?-))
346 (speedbar-make-tag-line 'bracket char 350 (speedbar-make-tag-line 'bracket char
347 'gdb-speedbar-expand-node varnum 351 'gdb-speedbar-expand-node varnum
348 (concat (car var) " " (nth 3 var)) 352 (concat (car var) "\t" (nth 3 var))
349 'gdb-var-delete 353 'gdb-var-delete
350 nil 'speedbar-directory-face depth))) 354 nil nil depth)))
351 (setq var-list (cdr var-list)))) 355 (setq var-list (cdr var-list))))
352 (setq gdb-var-changed nil))) 356 (setq gdb-var-changed nil)))
353 (t (if (and (save-excursion 357 (t (if (and (save-excursion
diff --git a/lisp/shell.el b/lisp/shell.el
index c9191bc1648..cc83dcf1429 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -177,7 +177,7 @@ This is a fine thing to set in your `.emacs' file.")
177(defvar shell-file-name-quote-list 177(defvar shell-file-name-quote-list
178 (if (memq system-type '(ms-dos windows-nt)) 178 (if (memq system-type '(ms-dos windows-nt))
179 nil 179 nil
180 (append shell-delimiter-argument-list '(?\ ?\* ?\! ?\" ?\' ?\` ?\#))) 180 (append shell-delimiter-argument-list '(?\ ?\* ?\! ?\" ?\' ?\` ?\# ?\\)))
181 "List of characters to quote when in a file name. 181 "List of characters to quote when in a file name.
182This variable is used to initialize `comint-file-name-quote-list' in the 182This variable is used to initialize `comint-file-name-quote-list' in the
183shell buffer. The value may depend on the operating system or shell. 183shell buffer. The value may depend on the operating system or shell.
diff --git a/lisp/vc.el b/lisp/vc.el
index 77ec540bae4..79ce8594599 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -7,7 +7,7 @@
7;; Maintainer: Andre Spiegel <spiegel@gnu.org> 7;; Maintainer: Andre Spiegel <spiegel@gnu.org>
8;; Keywords: tools 8;; Keywords: tools
9 9
10;; $Id: vc.el,v 1.360 2003/09/01 15:45:17 miles Exp $ 10;; $Id: vc.el,v 1.361 2003/12/24 23:18:10 uid66361 Exp $
11 11
12;; This file is part of GNU Emacs. 12;; This file is part of GNU Emacs.
13 13
@@ -2144,7 +2144,7 @@ Called by dired after any portion of a vc-dired buffer has been read in."
2144 ;; We cannot remove the top level directory. 2144 ;; We cannot remove the top level directory.
2145 ;; Just make it look a little nicer. 2145 ;; Just make it look a little nicer.
2146 (forward-line 1) 2146 (forward-line 1)
2147 (kill-line) 2147 (or (eobp) (kill-line))
2148 (if (not (dired-next-subdir 1 t)) 2148 (if (not (dired-next-subdir 1 t))
2149 (goto-char (point-max)))))) 2149 (goto-char (point-max))))))
2150 (goto-char (point-min))) 2150 (goto-char (point-min)))
diff --git a/man/ChangeLog b/man/ChangeLog
index b4447807c06..978b1e03d41 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,14 @@
12003-12-23 Nick Roberts <nick@nick.uklinux.net>
2
3 * building.texi (Watch Expressions): Update.
4 (Commands of GUD): Include use of toolbar + breakpoints set from
5 fringe/margin.
6
72003-12-03 Andre Spiegel <spiegel@gnu.org>
8
9 * files.texi: Say how to disable VC. Suggested by Alan Mackenzie
10 <acm@muc.de>.
11
12003-11-30 Kai Grossjohann <kai.grossjohann@gmx.net> 122003-11-30 Kai Grossjohann <kai.grossjohann@gmx.net>
2 Tramp version 2.0.38 released. 13 Tramp version 2.0.38 released.
3 14
diff --git a/man/building.texi b/man/building.texi
index ed05baa4ca9..1613357684d 100644
--- a/man/building.texi
+++ b/man/building.texi
@@ -398,7 +398,10 @@ commands of Shell mode are available (@pxref{Shell Mode}). GUD mode
398also provides commands for setting and clearing breakpoints, for 398also provides commands for setting and clearing breakpoints, for
399selecting stack frames, and for stepping through the program. These 399selecting stack frames, and for stepping through the program. These
400commands are available both in the GUD buffer and globally, but with 400commands are available both in the GUD buffer and globally, but with
401different key bindings. 401different key bindings. It also has its own toolbar from which you
402can invoke the more common commands by clicking on the appropriate
403icon. This is particularly useful for repetitive commands like
404gud-next and gud-step and allows the user to hide the GUD buffer.
402 405
403 The breakpoint commands are normally used in source file buffers, 406 The breakpoint commands are normally used in source file buffers,
404because that is the easiest way to specify where to set or clear the 407because that is the easiest way to specify where to set or clear the
@@ -535,6 +538,12 @@ be bizarre. See the GDB manual entry regarding @code{jump} for
535details. 538details.
536@end table 539@end table
537 540
541If you started GDB with the command @code{gdba}, you can click
542@kbd{Mouse-1} on a line of the source buffer, in the fringe or display
543margin, to set a breakpoint there. If a breakpoint already exists on
544that line, this action will remove it.
545(@code{gdb-mouse-toggle-breakpoint}).
546
538 These commands interpret a numeric argument as a repeat count, when 547 These commands interpret a numeric argument as a repeat count, when
539that makes sense. 548that makes sense.
540 549
@@ -631,7 +640,7 @@ to know GDB commands.
631@menu 640@menu
632* Breakpoints Buffer:: A breakpoint control panel. 641* Breakpoints Buffer:: A breakpoint control panel.
633* Stack Buffer:: Select a frame from the call stack. 642* Stack Buffer:: Select a frame from the call stack.
634* Watch Expressions:: Watch expressions and their values in the speedbar. 643* Watch Expressions:: Monitor variable values in the speedbar.
635* Other Buffers:: Input/output, locals, registers and assembler buffers. 644* Other Buffers:: Input/output, locals, registers and assembler buffers.
636* Layout:: Control the number of displayed buffers. 645* Layout:: Control the number of displayed buffers.
637@end menu 646@end menu
@@ -688,15 +697,30 @@ If you want to see how a variable changes each time your program stops
688then place the cursor over the variable name and click on the watch 697then place the cursor over the variable name and click on the watch
689icon in the toolbar (@code{gud-watch}). 698icon in the toolbar (@code{gud-watch}).
690 699
691Each watch expression is displayed in the speedbar. To expand or contract 700Each watch expression is displayed in the speedbar. Complex data
692an array or structure, click @kbd{Mouse-2} on the tag to the left of the 701types, such as arrays, structures and unions are represented in a tree
693expression. 702format. To expand or contract a complex data type, click @kbd{Mouse-2}
703on the tag to the left of the expression.
694 704
695@kindex RET @r{(GDB speedbar)} 705@kindex RET @r{(GDB speedbar)}
696@findex gdb-var-delete 706@findex gdb-var-delete
697With the cursor over a root expression i.e not an array index or 707With the cursor over the root expression of a complex data type, type
698structure component, type @key{RET} or click @kbd{Mouse-2} to delete 708@key{RET} or click @kbd{Mouse-2} to delete it from the speedbar
699it from the speedbar (@code{gdb-var-delete}). 709(@code{gdb-var-delete}).
710
711@findex gdb-edit-value
712With the cursor over a simple data type or an element of a complex
713data type which holds a value, type @key{RET} or click @kbd{Mouse-2} to edit
714its value. A prompt for a new value appears in the mini-buffer
715(@code{gdb-edit-value}).
716
717If you set the variable @code{gdb-show-changed-values} to a
718non-@code{nil} value, then Emacs will use font-lock-warning-face to
719display values that have recently changed in the speedbar.
720
721If you set the variable @code{gdb-use-colon-colon-notation} to a
722non-@code{nil} value, then, in C, Emacs will use the
723FUNCTION::VARIABLE format to display variables in the speedbar.
700 724
701@node Other Buffers 725@node Other Buffers
702@subsubsection Other Buffers 726@subsubsection Other Buffers
@@ -724,18 +748,21 @@ The assembler buffer displays the current frame as machine code. An
724overlay arrow points to the current instruction and you can set and 748overlay arrow points to the current instruction and you can set and
725remove breakpoints as with the source buffer. Breakpoints also 749remove breakpoints as with the source buffer. Breakpoints also
726appear in the margin. 750appear in the margin.
751
752@item Threads Buffer
753
754The threads buffer displays a summary of all threads currently in your
755program.(@pxref{Threads,,, gdb, The GNU debugger}). Move point to
756any thread in the list and type @key{RET} to make it become the
757current thread (@code{gdb-threads-select}) and display the associated
758source in the source buffer. Alternatively, click @kbd{Mouse-2} to
759make the selected thread become the current one.
760
727@end table 761@end table
728 762
729@node Layout 763@node Layout
730@subsubsection Layout 764@subsubsection Layout
731@cindex GDB User Interface layout 765@cindex GDB User Interface layout
732You may choose to display the additional buffers described previously
733either in the same frame or a different one. Select GDB-windows or
734GDB-Frames from the menu-bar under the heading GUD. If the menu-bar
735is unavailable, type @code{M-x
736gdb-display-@var{buffertype}-buffer} or @code{M-x
737gdb-frame-@var{buffertype}-buffer} respectively, where @var{buffertype}
738is the relevant buffer type e.g breakpoints.
739 766
740@findex gdb-many-windows 767@findex gdb-many-windows
741@vindex gdb-many-windows 768@vindex gdb-many-windows
@@ -763,6 +790,14 @@ If you change the window layout, for example, while editing and
763re-compiling your program, then you can restore it with 790re-compiling your program, then you can restore it with
764@code{gdb-restore-windows}. 791@code{gdb-restore-windows}.
765 792
793You may also choose which additional buffers you want to display,
794either in the same frame or a different one. Select GDB-windows or
795GDB-Frames from the menu-bar under the heading GUD. If the menu-bar
796is unavailable, type @code{M-x
797gdb-display-@var{buffertype}-buffer} or @code{M-x
798gdb-frame-@var{buffertype}-buffer} respectively, where @var{buffertype}
799is the relevant buffer type e.g breakpoints.
800
766@node Executing Lisp 801@node Executing Lisp
767@section Executing Lisp Expressions 802@section Executing Lisp Expressions
768 803
diff --git a/man/files.texi b/man/files.texi
index 795b6c026b2..9a4a2042fc4 100644
--- a/man/files.texi
+++ b/man/files.texi
@@ -1124,6 +1124,10 @@ from the Free Software Foundation. We also have free software to
1124replace SCCS, known as CSSC; if you are using SCCS and don't want to 1124replace SCCS, known as CSSC; if you are using SCCS and don't want to
1125make the incompatible change to RCS or CVS, you can switch to CSSC. 1125make the incompatible change to RCS or CVS, you can switch to CSSC.
1126 1126
1127 VC is enabled by default in Emacs. To disable it, set the
1128customizable variable @code{vc-handled-backends} to @code{nil}
1129(@pxref{Customizing VC}).
1130
1127@menu 1131@menu
1128* Introduction to VC:: How version control works in general. 1132* Introduction to VC:: How version control works in general.
1129* VC Mode Line:: How the mode line shows version control status. 1133* VC Mode Line:: How the mode line shows version control status.
@@ -2494,7 +2498,8 @@ The variable @code{vc-handled-backends} determines which version
2494control systems VC should handle. The default value is @code{(RCS CVS 2498control systems VC should handle. The default value is @code{(RCS CVS
2495SCCS)}, so it contains all three version systems that are currently 2499SCCS)}, so it contains all three version systems that are currently
2496supported. If you want VC to ignore one or more of these systems, 2500supported. If you want VC to ignore one or more of these systems,
2497exclude its name from the list. 2501exclude its name from the list. To disable VC entirely, set this
2502variable to @code{nil}.
2498 2503
2499The order of systems in the list is significant: when you visit a file 2504The order of systems in the list is significant: when you visit a file
2500registered in more than one system (@pxref{Local Version Control}), 2505registered in more than one system (@pxref{Local Version Control}),
diff --git a/nt/.gitignore b/nt/.gitignore
index 9aff5a7ca3b..c577a6a341f 100644
--- a/nt/.gitignore
+++ b/nt/.gitignore
@@ -1,2 +1,3 @@
1*-spd 1*-spd
2*.pdb 2*.pdb
3.arch-inventory
diff --git a/nt/ChangeLog b/nt/ChangeLog
index c534293ae1d..4a51c1ab4ee 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12003-12-24 Miles Bader <miles@gnu.ai.mit.edu>
2
3 * .cvsignore: Add `.arch-inventory'.
4
12003-11-22 Lars Hansen <larsh@math.ku.dk> 52003-11-22 Lars Hansen <larsh@math.ku.dk>
2 6
3 * inc/grp.h: Added. 7 * inc/grp.h: Added.
diff --git a/src/ChangeLog b/src/ChangeLog
index f6959b45efa..4adadd84db1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,41 @@
12003-12-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
4
5 * xfaces.c (lface_fully_specified_p): Take into account that
6 MAC OS always have unspecified stipple.
7
82003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
9
10 * tparam.c (tparam1): Add handling for `%pN', which
11 means use param N for the next substitution.
12
132003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
14
15 * xfaces.c (Fcolor_gray_p): Fix omission bug:
16 In case `frame' is nil, consult the selected frame.
17 (Fcolor_supported_p): Likewise.
18
192003-12-23 Luc Teirlinck <teirllm@auburn.edu>
20
21 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
22 Doc fixes.
23
24 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
25 and an integer. Adapt the introductory comment accordingly.
26 (Fread_from_minibuffer): Delete code moved into read_minibuf.
27 Doc fix.
28 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
29 read_minibuf.
30 (Fcompleting_read): Delete code moved into read_minibuf.
31 (Ftest_completion): Make it handle obarrays and hash tables
32 correctly.
33
342003-12-03 Kenichi Handa <handa@m17n.org>
35
36 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
37 encoding sequence.
38
12003-12-01 Kenichi Handa <handa@m17n.org> 392003-12-01 Kenichi Handa <handa@m17n.org>
2 40
3 * composite.c (syms_of_composite): Don't make the compostion hash 41 * composite.c (syms_of_composite): Don't make the compostion hash
diff --git a/src/coding.c b/src/coding.c
index 910fc8faa68..3f11c6f41fb 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -2125,7 +2125,10 @@ decode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
2125 && src + 1 < src_end 2125 && src + 1 < src_end
2126 && src[0] == '%' 2126 && src[0] == '%'
2127 && src[1] == '@') 2127 && src[1] == '@')
2128 break; 2128 {
2129 src += 2;
2130 break;
2131 }
2129 d += CHAR_STRING (c1, d), produced_chars++; 2132 d += CHAR_STRING (c1, d), produced_chars++;
2130 } 2133 }
2131 if (d + 3 > (dst_bytes ? dst_end : src)) 2134 if (d + 3 > (dst_bytes ? dst_end : src))
diff --git a/src/config.in b/src/config.in
index 5024712ac43..0fb4b3f3444 100644
--- a/src/config.in
+++ b/src/config.in
@@ -549,6 +549,9 @@ Boston, MA 02111-1307, USA. */
549/* Define to 1 if you have the <sys/select.h> header file. */ 549/* Define to 1 if you have the <sys/select.h> header file. */
550#undef HAVE_SYS_SELECT_H 550#undef HAVE_SYS_SELECT_H
551 551
552/* Define to 1 if you have the <sys/socket.h> header file. */
553#undef HAVE_SYS_SOCKET_H
554
552/* Define to 1 if you have the <sys/soundcard.h> header file. */ 555/* Define to 1 if you have the <sys/soundcard.h> header file. */
553#undef HAVE_SYS_SOUNDCARD_H 556#undef HAVE_SYS_SOUNDCARD_H
554 557
@@ -748,9 +751,9 @@ Boston, MA 02111-1307, USA. */
748/* If using the C implementation of alloca, define if you know the 751/* If using the C implementation of alloca, define if you know the
749 direction of stack growth for your system; otherwise it will be 752 direction of stack growth for your system; otherwise it will be
750 automatically deduced at run-time. 753 automatically deduced at run-time.
751 STACK_DIRECTION > 0 => grows toward higher addresses 754 STACK_DIRECTION > 0 => grows toward higher addresses
752 STACK_DIRECTION < 0 => grows toward lower addresses 755 STACK_DIRECTION < 0 => grows toward lower addresses
753 STACK_DIRECTION = 0 => direction of growth unknown */ 756 STACK_DIRECTION = 0 => direction of growth unknown */
754#undef STACK_DIRECTION 757#undef STACK_DIRECTION
755 758
756/* Define to 1 if you have the ANSI C header files. */ 759/* Define to 1 if you have the ANSI C header files. */
diff --git a/src/fns.c b/src/fns.c
index fed948dc29f..e4252c98ca5 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -95,7 +95,7 @@ DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0,
95DEFUN ("random", Frandom, Srandom, 0, 1, 0, 95DEFUN ("random", Frandom, Srandom, 0, 1, 0,
96 doc: /* Return a pseudo-random number. 96 doc: /* Return a pseudo-random number.
97All integers representable in Lisp are equally likely. 97All integers representable in Lisp are equally likely.
98 On most systems, this is 28 bits' worth. 98 On most systems, this is 29 bits' worth.
99With positive integer argument N, return random number in interval [0,N). 99With positive integer argument N, return random number in interval [0,N).
100With argument t, set the random number seed from the current time and pid. */) 100With argument t, set the random number seed from the current time and pid. */)
101 (n) 101 (n)
@@ -1099,8 +1099,14 @@ string_make_unibyte (string)
1099DEFUN ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte, 1099DEFUN ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte,
1100 1, 1, 0, 1100 1, 1, 0,
1101 doc: /* Return the multibyte equivalent of STRING. 1101 doc: /* Return the multibyte equivalent of STRING.
1102The function `unibyte-char-to-multibyte' is used to convert 1102If STRING is unibyte and contains non-ASCII characters, the function
1103each unibyte character to a multibyte character. */) 1103`unibyte-char-to-multibyte' is used to convert each unibyte character
1104to a multibyte character. In this case, the returned string is a
1105newly created string with no text properties. If STRING is multibyte
1106or entirely ASCII, it is returned unchanged. In particular, when
1107STRING is unibyte and entirely ASCII, the returned string is unibyte.
1108\(When the characters are all ASCII, Emacs primitives will treat the
1109string the same way whether it is unibyte or multibyte.) */)
1104 (string) 1110 (string)
1105 Lisp_Object string; 1111 Lisp_Object string;
1106{ 1112{
@@ -2482,9 +2488,9 @@ a character set name, or a character code. */)
2482DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range, 2488DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range,
2483 3, 3, 0, 2489 3, 3, 0,
2484 doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE. 2490 doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE.
2485RANGE should be t (for all characters), nil (for the default value) 2491RANGE should be t (for all characters), nil (for the default value),
2486a vector which identifies a character set or a row of a character set, 2492a character set, a vector which identifies a character set, a row of a
2487a coding system, or a character code. */) 2493character set, or a character code. Return VALUE. */)
2488 (char_table, range, value) 2494 (char_table, range, value)
2489 Lisp_Object char_table, range, value; 2495 Lisp_Object char_table, range, value;
2490{ 2496{
@@ -5648,7 +5654,7 @@ This applies to commands from menus and tool bar buttons. The value of
5648`use-dialog-box' takes precedence over this variable, so a file dialog is only 5654`use-dialog-box' takes precedence over this variable, so a file dialog is only
5649used if both `use-dialog-box' and this variable are non-nil. */); 5655used if both `use-dialog-box' and this variable are non-nil. */);
5650 use_file_dialog = 1; 5656 use_file_dialog = 1;
5651 5657
5652 defsubr (&Sidentity); 5658 defsubr (&Sidentity);
5653 defsubr (&Srandom); 5659 defsubr (&Srandom);
5654 defsubr (&Slength); 5660 defsubr (&Slength);
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 4fc3351ab7e..4d0b50573f7 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -515,7 +515,7 @@ xg_frame_set_char_size (f, cols, rows)
515 gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), 515 gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
516 pixelwidth, pixelheight); 516 pixelwidth, pixelheight);
517 xg_resize_widgets (f, pixelwidth, pixelheight); 517 xg_resize_widgets (f, pixelwidth, pixelheight);
518 518 x_wm_set_size_hint (f, 0, 0);
519 SET_FRAME_GARBAGED (f); 519 SET_FRAME_GARBAGED (f);
520 cancel_mouse_face (f); 520 cancel_mouse_face (f);
521} 521}
diff --git a/src/minibuf.c b/src/minibuf.c
index 542fdd54f1d..4c98f7ba708 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -404,10 +404,15 @@ minibuffer_completion_contents ()
404 return make_buffer_string (prompt_end, PT, 1); 404 return make_buffer_string (prompt_end, PT, 1);
405} 405}
406 406
407/* Read from the minibuffer using keymap MAP, initial contents INITIAL 407/* Read from the minibuffer using keymap MAP and initial contents INITIAL,
408 (a string), putting point minus BACKUP_N bytes from the end of INITIAL, 408 putting point minus BACKUP_N bytes from the end of INITIAL,
409 prompting with PROMPT (a string), using history list HISTVAR 409 prompting with PROMPT (a string), using history list HISTVAR
410 with initial position HISTPOS. (BACKUP_N should be <= 0.) 410 with initial position HISTPOS. INITIAL should be a string or a
411 cons of a string and an integer. BACKUP_N should be <= 0, or
412 Qnil, which is equivalent to 0. If INITIAL is a cons, BACKUP_N is
413 ignored and replaced with an integer that puts point N characters
414 from the beginning of INITIAL, where N is the CDR of INITIAL, or at
415 the beginning of INITIAL if N <= 0.
411 416
412 Normally return the result as a string (the text that was read), 417 Normally return the result as a string (the text that was read),
413 but if EXPFLAG is nonzero, read it and return the object read. 418 but if EXPFLAG is nonzero, read it and return the object read.
@@ -419,7 +424,7 @@ minibuffer_completion_contents ()
419 424
420 If ALLOW_PROPS is nonzero, we do not throw away text properties. 425 If ALLOW_PROPS is nonzero, we do not throw away text properties.
421 426
422 if INHERIT_INPUT_METHOD is nonzeor, the minibuffer inherit the 427 if INHERIT_INPUT_METHOD is nonzero, the minibuffer inherits the
423 current input method. */ 428 current input method. */
424 429
425static Lisp_Object 430static Lisp_Object
@@ -441,6 +446,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
441 Lisp_Object mini_frame, ambient_dir, minibuffer, input_method; 446 Lisp_Object mini_frame, ambient_dir, minibuffer, input_method;
442 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5; 447 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
443 Lisp_Object enable_multibyte; 448 Lisp_Object enable_multibyte;
449 int pos = INTEGERP (backup_n) ? XINT (backup_n) : 0;
444 450
445 /* String to add to the history. */ 451 /* String to add to the history. */
446 Lisp_Object histstring; 452 Lisp_Object histstring;
@@ -456,6 +462,27 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
456 cancel_hourglass (); 462 cancel_hourglass ();
457#endif 463#endif
458 464
465 if (!NILP (initial))
466 {
467 if (CONSP (initial))
468 {
469 backup_n = Fcdr (initial);
470 initial = Fcar (initial);
471 CHECK_STRING (initial);
472 if (!NILP (backup_n))
473 {
474 CHECK_NUMBER (backup_n);
475 /* Convert to distance from end of input. */
476 if (XINT (backup_n) < 1)
477 /* A number too small means the beginning of the string. */
478 pos = - SCHARS (initial);
479 else
480 pos = XINT (backup_n) - 1 - SCHARS (initial);
481 }
482 }
483 else
484 CHECK_STRING (initial);
485 }
459 val = Qnil; 486 val = Qnil;
460 ambient_dir = current_buffer->directory; 487 ambient_dir = current_buffer->directory;
461 input_method = Qnil; 488 input_method = Qnil;
@@ -482,7 +509,8 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
482 509
483 if (noninteractive) 510 if (noninteractive)
484 { 511 {
485 val = read_minibuf_noninteractive (map, initial, prompt, backup_n, 512 val = read_minibuf_noninteractive (map, initial, prompt,
513 make_number (pos),
486 expflag, histvar, histpos, defalt, 514 expflag, histvar, histpos, defalt,
487 allow_props, inherit_input_method); 515 allow_props, inherit_input_method);
488 UNGCPRO; 516 UNGCPRO;
@@ -633,8 +661,7 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
633 if (!NILP (initial)) 661 if (!NILP (initial))
634 { 662 {
635 Finsert (1, &initial); 663 Finsert (1, &initial);
636 if (INTEGERP (backup_n)) 664 Fforward_char (make_number (pos));
637 Fforward_char (backup_n);
638 } 665 }
639 666
640 clear_message (1, 1); 667 clear_message (1, 1);
@@ -884,8 +911,9 @@ Fifth arg HIST, if non-nil, specifies a history list
884 which INITIAL-CONTENTS corresponds to). 911 which INITIAL-CONTENTS corresponds to).
885 Positions are counted starting from 1 at the beginning of the list. 912 Positions are counted starting from 1 at the beginning of the list.
886Sixth arg DEFAULT-VALUE is the default value. If non-nil, it is available 913Sixth arg DEFAULT-VALUE is the default value. If non-nil, it is available
887 for history commands; but `read-from-minibuffer' does NOT return DEFAULT-VALUE 914 for history commands; but, unless READ is non-nil, `read-from-minibuffer'
888 if the user enters empty input! It returns the empty string. 915 does NOT return DEFAULT-VALUE if the user enters empty input! It returns
916 the empty string.
889Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits 917Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
890 the current input method and the setting of `enable-multibyte-characters'. 918 the current input method and the setting of `enable-multibyte-characters'.
891If the variable `minibuffer-allow-text-properties' is non-nil, 919If the variable `minibuffer-allow-text-properties' is non-nil,
@@ -895,33 +923,10 @@ If the variable `minibuffer-allow-text-properties' is non-nil,
895 Lisp_Object prompt, initial_contents, keymap, read, hist, default_value; 923 Lisp_Object prompt, initial_contents, keymap, read, hist, default_value;
896 Lisp_Object inherit_input_method; 924 Lisp_Object inherit_input_method;
897{ 925{
898 int pos = 0; 926 Lisp_Object histvar, histpos, val;
899 Lisp_Object histvar, histpos, position, val;
900 struct gcpro gcpro1; 927 struct gcpro gcpro1;
901 928
902 position = Qnil;
903
904 CHECK_STRING (prompt); 929 CHECK_STRING (prompt);
905 if (!NILP (initial_contents))
906 {
907 if (CONSP (initial_contents))
908 {
909 position = Fcdr (initial_contents);
910 initial_contents = Fcar (initial_contents);
911 }
912 CHECK_STRING (initial_contents);
913 if (!NILP (position))
914 {
915 CHECK_NUMBER (position);
916 /* Convert to distance from end of input. */
917 if (XINT (position) < 1)
918 /* A number too small means the beginning of the string. */
919 pos = - SCHARS (initial_contents);
920 else
921 pos = XINT (position) - 1 - SCHARS (initial_contents);
922 }
923 }
924
925 if (NILP (keymap)) 930 if (NILP (keymap))
926 keymap = Vminibuffer_local_map; 931 keymap = Vminibuffer_local_map;
927 else 932 else
@@ -944,7 +949,7 @@ If the variable `minibuffer-allow-text-properties' is non-nil,
944 949
945 GCPRO1 (default_value); 950 GCPRO1 (default_value);
946 val = read_minibuf (keymap, initial_contents, prompt, 951 val = read_minibuf (keymap, initial_contents, prompt,
947 make_number (pos), !NILP (read), 952 Qnil, !NILP (read),
948 histvar, histpos, default_value, 953 histvar, histpos, default_value,
949 minibuffer_allow_text_properties, 954 minibuffer_allow_text_properties,
950 !NILP (inherit_input_method)); 955 !NILP (inherit_input_method));
@@ -960,8 +965,6 @@ is a string to insert in the minibuffer before reading. */)
960 Lisp_Object prompt, initial_contents; 965 Lisp_Object prompt, initial_contents;
961{ 966{
962 CHECK_STRING (prompt); 967 CHECK_STRING (prompt);
963 if (!NILP (initial_contents))
964 CHECK_STRING (initial_contents);
965 return read_minibuf (Vminibuffer_local_map, initial_contents, 968 return read_minibuf (Vminibuffer_local_map, initial_contents,
966 prompt, Qnil, 1, Qminibuffer_history, 969 prompt, Qnil, 1, Qminibuffer_history,
967 make_number (0), Qnil, 0, 0); 970 make_number (0), Qnil, 0, 0);
@@ -1012,9 +1015,6 @@ the current input method and the setting of `enable-multibyte-characters'. */)
1012 Lisp_Object prompt, initial, inherit_input_method; 1015 Lisp_Object prompt, initial, inherit_input_method;
1013{ 1016{
1014 CHECK_STRING (prompt); 1017 CHECK_STRING (prompt);
1015 if (! NILP (initial))
1016 CHECK_STRING (initial);
1017
1018 return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil, 1018 return read_minibuf (Vminibuffer_local_ns_map, initial, prompt, Qnil,
1019 0, Qminibuffer_history, make_number (0), Qnil, 0, 1019 0, Qminibuffer_history, make_number (0), Qnil, 0,
1020 !NILP (inherit_input_method)); 1020 !NILP (inherit_input_method));
@@ -1578,13 +1578,10 @@ Completion ignores case if the ambient value of
1578 Lisp_Object prompt, table, predicate, require_match, initial_input; 1578 Lisp_Object prompt, table, predicate, require_match, initial_input;
1579 Lisp_Object hist, def, inherit_input_method; 1579 Lisp_Object hist, def, inherit_input_method;
1580{ 1580{
1581 Lisp_Object val, histvar, histpos, position; 1581 Lisp_Object val, histvar, histpos;
1582 Lisp_Object init;
1583 int pos = 0;
1584 int count = SPECPDL_INDEX (); 1582 int count = SPECPDL_INDEX ();
1585 struct gcpro gcpro1; 1583 struct gcpro gcpro1;
1586 1584
1587 init = initial_input;
1588 GCPRO1 (def); 1585 GCPRO1 (def);
1589 1586
1590 specbind (Qminibuffer_completion_table, table); 1587 specbind (Qminibuffer_completion_table, table);
@@ -1593,23 +1590,6 @@ Completion ignores case if the ambient value of
1593 EQ (require_match, Qt) ? Qnil : require_match); 1590 EQ (require_match, Qt) ? Qnil : require_match);
1594 last_exact_completion = Qnil; 1591 last_exact_completion = Qnil;
1595 1592
1596 position = Qnil;
1597 if (!NILP (init))
1598 {
1599 if (CONSP (init))
1600 {
1601 position = Fcdr (init);
1602 init = Fcar (init);
1603 }
1604 CHECK_STRING (init);
1605 if (!NILP (position))
1606 {
1607 CHECK_NUMBER (position);
1608 /* Convert to distance from end of input. */
1609 pos = XINT (position) - SCHARS (init);
1610 }
1611 }
1612
1613 if (SYMBOLP (hist)) 1593 if (SYMBOLP (hist))
1614 { 1594 {
1615 histvar = hist; 1595 histvar = hist;
@@ -1628,7 +1608,7 @@ Completion ignores case if the ambient value of
1628 val = read_minibuf (NILP (require_match) 1608 val = read_minibuf (NILP (require_match)
1629 ? Vminibuffer_local_completion_map 1609 ? Vminibuffer_local_completion_map
1630 : Vminibuffer_local_must_match_map, 1610 : Vminibuffer_local_must_match_map,
1631 init, prompt, make_number (pos), 0, 1611 initial_input, prompt, Qnil, 0,
1632 histvar, histpos, def, 0, 1612 histvar, histpos, def, 0,
1633 !NILP (inherit_input_method)); 1613 !NILP (inherit_input_method));
1634 1614
@@ -1650,7 +1630,7 @@ the values STRING, PREDICATE and `lambda'. */)
1650 (string, alist, predicate) 1630 (string, alist, predicate)
1651 Lisp_Object string, alist, predicate; 1631 Lisp_Object string, alist, predicate;
1652{ 1632{
1653 Lisp_Object regexps, tem = Qnil; 1633 Lisp_Object regexps, tail, tem = Qnil;
1654 int i = 0; 1634 int i = 0;
1655 1635
1656 CHECK_STRING (string); 1636 CHECK_STRING (string);
@@ -1676,20 +1656,56 @@ the values STRING, PREDICATE and `lambda'. */)
1676 else 1656 else
1677 string = Fstring_make_multibyte (string); 1657 string = Fstring_make_multibyte (string);
1678 1658
1679 tem = oblookup (Vminibuffer_completion_table, 1659 tem = oblookup (alist,
1680 SDATA (string), 1660 SDATA (string),
1681 SCHARS (string), 1661 SCHARS (string),
1682 SBYTES (string)); 1662 SBYTES (string));
1683 if (!SYMBOLP (tem))
1684 return Qnil;
1685 } 1663 }
1664
1665 if (completion_ignore_case && !SYMBOLP (tem))
1666 {
1667 for (i = XVECTOR (alist)->size - 1; i >= 0; i--)
1668 {
1669 tail = XVECTOR (alist)->contents[i];
1670 if (SYMBOLP (tail))
1671 while (1)
1672 {
1673 if (EQ((Fcompare_strings (string, make_number (0), Qnil,
1674 Fsymbol_name (tail),
1675 make_number (0) , Qnil, Qt)),
1676 Qt))
1677 {
1678 tem = tail;
1679 break;
1680 }
1681 if (XSYMBOL (tail)->next == 0)
1682 break;
1683 XSETSYMBOL (tail, XSYMBOL (tail)->next);
1684 }
1685 }
1686 }
1687
1688 if (!SYMBOLP (tem))
1689 return Qnil;
1686 } 1690 }
1687 else if (HASH_TABLE_P (alist)) 1691 else if (HASH_TABLE_P (alist))
1688 { 1692 {
1689 i = hash_lookup (XHASH_TABLE (alist), string, NULL); 1693 struct Lisp_Hash_Table *h = XHASH_TABLE (alist);
1694 i = hash_lookup (h, string, NULL);
1690 if (i >= 0) 1695 if (i >= 0)
1691 tem = HASH_KEY (XHASH_TABLE (alist), i); 1696 tem = HASH_KEY (h, i);
1692 else 1697 else
1698 for (i = 0; i < HASH_TABLE_SIZE (h); ++i)
1699 if (!NILP (HASH_HASH (h, i)) &&
1700 EQ (Fcompare_strings (string, make_number (0), Qnil,
1701 HASH_KEY (h, i), make_number (0) , Qnil,
1702 completion_ignore_case ? Qt : Qnil),
1703 Qt))
1704 {
1705 tem = HASH_KEY (h, i);
1706 break;
1707 }
1708 if (!STRINGP (tem))
1693 return Qnil; 1709 return Qnil;
1694 } 1710 }
1695 else 1711 else
diff --git a/src/regex.c b/src/regex.c
deleted file mode 100644
index a145183510d..00000000000
--- a/src/regex.c
+++ /dev/null
@@ -1,6335 +0,0 @@
1/* Extended regular expression matching and search library, version
2 0.12. (Implements POSIX draft P1003.2/D11.2, except for some of the
3 internationalization features.)
4
5 Copyright (C) 1993,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20 USA. */
21
22/* TODO:
23 - structure the opcode space into opcode+flag.
24 - merge with glibc's regex.[ch].
25 - replace (succeed_n + jump_n + set_number_at) with something that doesn't
26 need to modify the compiled regexp so that re_match can be reentrant.
27 - get rid of on_failure_jump_smart by doing the optimization in re_comp
28 rather than at run-time, so that re_match can be reentrant.
29*/
30
31/* AIX requires this to be the first thing in the file. */
32#if defined _AIX && !defined REGEX_MALLOC
33 #pragma alloca
34#endif
35
36#ifdef HAVE_CONFIG_H
37# include <config.h>
38#endif
39
40#if defined STDC_HEADERS && !defined emacs
41# include <stddef.h>
42#else
43/* We need this for `regex.h', and perhaps for the Emacs include files. */
44# include <sys/types.h>
45#endif
46
47/* Whether to use ISO C Amendment 1 wide char functions.
48 Those should not be used for Emacs since it uses its own. */
49#if defined _LIBC
50#define WIDE_CHAR_SUPPORT 1
51#else
52#define WIDE_CHAR_SUPPORT \
53 (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC && !emacs)
54#endif
55
56/* For platform which support the ISO C amendement 1 functionality we
57 support user defined character classes. */
58#if WIDE_CHAR_SUPPORT
59/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */
60# include <wchar.h>
61# include <wctype.h>
62#endif
63
64#ifdef _LIBC
65/* We have to keep the namespace clean. */
66# define regfree(preg) __regfree (preg)
67# define regexec(pr, st, nm, pm, ef) __regexec (pr, st, nm, pm, ef)
68# define regcomp(preg, pattern, cflags) __regcomp (preg, pattern, cflags)
69# define regerror(errcode, preg, errbuf, errbuf_size) \
70 __regerror(errcode, preg, errbuf, errbuf_size)
71# define re_set_registers(bu, re, nu, st, en) \
72 __re_set_registers (bu, re, nu, st, en)
73# define re_match_2(bufp, string1, size1, string2, size2, pos, regs, stop) \
74 __re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
75# define re_match(bufp, string, size, pos, regs) \
76 __re_match (bufp, string, size, pos, regs)
77# define re_search(bufp, string, size, startpos, range, regs) \
78 __re_search (bufp, string, size, startpos, range, regs)
79# define re_compile_pattern(pattern, length, bufp) \
80 __re_compile_pattern (pattern, length, bufp)
81# define re_set_syntax(syntax) __re_set_syntax (syntax)
82# define re_search_2(bufp, st1, s1, st2, s2, startpos, range, regs, stop) \
83 __re_search_2 (bufp, st1, s1, st2, s2, startpos, range, regs, stop)
84# define re_compile_fastmap(bufp) __re_compile_fastmap (bufp)
85
86/* Make sure we call libc's function even if the user overrides them. */
87# define btowc __btowc
88# define iswctype __iswctype
89# define wctype __wctype
90
91# define WEAK_ALIAS(a,b) weak_alias (a, b)
92
93/* We are also using some library internals. */
94# include <locale/localeinfo.h>
95# include <locale/elem-hash.h>
96# include <langinfo.h>
97#else
98# define WEAK_ALIAS(a,b)
99#endif
100
101/* This is for other GNU distributions with internationalized messages. */
102#if HAVE_LIBINTL_H || defined _LIBC
103# include <libintl.h>
104#else
105# define gettext(msgid) (msgid)
106#endif
107
108#ifndef gettext_noop
109/* This define is so xgettext can find the internationalizable
110 strings. */
111# define gettext_noop(String) String
112#endif
113
114/* The `emacs' switch turns on certain matching commands
115 that make sense only in Emacs. */
116#ifdef emacs
117
118# include "lisp.h"
119# include "buffer.h"
120
121/* Make syntax table lookup grant data in gl_state. */
122# define SYNTAX_ENTRY_VIA_PROPERTY
123
124# include "syntax.h"
125# include "charset.h"
126# include "category.h"
127
128# ifdef malloc
129# undef malloc
130# endif
131# define malloc xmalloc
132# ifdef realloc
133# undef realloc
134# endif
135# define realloc xrealloc
136# ifdef free
137# undef free
138# endif
139# define free xfree
140
141/* Converts the pointer to the char to BEG-based offset from the start. */
142# define PTR_TO_OFFSET(d) POS_AS_IN_BUFFER (POINTER_TO_OFFSET (d))
143# define POS_AS_IN_BUFFER(p) ((p) + (NILP (re_match_object) || BUFFERP (re_match_object)))
144
145# define RE_MULTIBYTE_P(bufp) ((bufp)->multibyte)
146# define RE_STRING_CHAR(p, s) \
147 (multibyte ? (STRING_CHAR (p, s)) : (*(p)))
148# define RE_STRING_CHAR_AND_LENGTH(p, s, len) \
149 (multibyte ? (STRING_CHAR_AND_LENGTH (p, s, len)) : ((len) = 1, *(p)))
150
151/* Set C a (possibly multibyte) character before P. P points into a
152 string which is the virtual concatenation of STR1 (which ends at
153 END1) or STR2 (which ends at END2). */
154# define GET_CHAR_BEFORE_2(c, p, str1, end1, str2, end2) \
155 do { \
156 if (multibyte) \
157 { \
158 re_char *dtemp = (p) == (str2) ? (end1) : (p); \
159 re_char *dlimit = ((p) > (str2) && (p) <= (end2)) ? (str2) : (str1); \
160 re_char *d0 = dtemp; \
161 PREV_CHAR_BOUNDARY (d0, dlimit); \
162 c = STRING_CHAR (d0, dtemp - d0); \
163 } \
164 else \
165 (c = ((p) == (str2) ? (end1) : (p))[-1]); \
166 } while (0)
167
168
169#else /* not emacs */
170
171/* If we are not linking with Emacs proper,
172 we can't use the relocating allocator
173 even if config.h says that we can. */
174# undef REL_ALLOC
175
176# if defined STDC_HEADERS || defined _LIBC
177# include <stdlib.h>
178# else
179char *malloc ();
180char *realloc ();
181# endif
182
183/* When used in Emacs's lib-src, we need to get bzero and bcopy somehow.
184 If nothing else has been done, use the method below. */
185# ifdef INHIBIT_STRING_HEADER
186# if !(defined HAVE_BZERO && defined HAVE_BCOPY)
187# if !defined bzero && !defined bcopy
188# undef INHIBIT_STRING_HEADER
189# endif
190# endif
191# endif
192
193/* This is the normal way of making sure we have memcpy, memcmp and bzero.
194 This is used in most programs--a few other programs avoid this
195 by defining INHIBIT_STRING_HEADER. */
196# ifndef INHIBIT_STRING_HEADER
197# if defined HAVE_STRING_H || defined STDC_HEADERS || defined _LIBC
198# include <string.h>
199# ifndef bzero
200# ifndef _LIBC
201# define bzero(s, n) (memset (s, '\0', n), (s))
202# else
203# define bzero(s, n) __bzero (s, n)
204# endif
205# endif
206# else
207# include <strings.h>
208# ifndef memcmp
209# define memcmp(s1, s2, n) bcmp (s1, s2, n)
210# endif
211# ifndef memcpy
212# define memcpy(d, s, n) (bcopy (s, d, n), (d))
213# endif
214# endif
215# endif
216
217/* Define the syntax stuff for \<, \>, etc. */
218
219/* Sword must be nonzero for the wordchar pattern commands in re_match_2. */
220enum syntaxcode { Swhitespace = 0, Sword = 1 };
221
222# ifdef SWITCH_ENUM_BUG
223# define SWITCH_ENUM_CAST(x) ((int)(x))
224# else
225# define SWITCH_ENUM_CAST(x) (x)
226# endif
227
228/* Dummy macros for non-Emacs environments. */
229# define BASE_LEADING_CODE_P(c) (0)
230# define CHAR_CHARSET(c) 0
231# define CHARSET_LEADING_CODE_BASE(c) 0
232# define MAX_MULTIBYTE_LENGTH 1
233# define RE_MULTIBYTE_P(x) 0
234# define WORD_BOUNDARY_P(c1, c2) (0)
235# define CHAR_HEAD_P(p) (1)
236# define SINGLE_BYTE_CHAR_P(c) (1)
237# define SAME_CHARSET_P(c1, c2) (1)
238# define MULTIBYTE_FORM_LENGTH(p, s) (1)
239# define PREV_CHAR_BOUNDARY(p, limit) ((p)--)
240# define STRING_CHAR(p, s) (*(p))
241# define RE_STRING_CHAR STRING_CHAR
242# define CHAR_STRING(c, s) (*(s) = (c), 1)
243# define STRING_CHAR_AND_LENGTH(p, s, actual_len) ((actual_len) = 1, *(p))
244# define RE_STRING_CHAR_AND_LENGTH STRING_CHAR_AND_LENGTH
245# define GET_CHAR_BEFORE_2(c, p, str1, end1, str2, end2) \
246 (c = ((p) == (str2) ? *((end1) - 1) : *((p) - 1)))
247# define MAKE_CHAR(charset, c1, c2) (c1)
248#endif /* not emacs */
249
250#ifndef RE_TRANSLATE
251# define RE_TRANSLATE(TBL, C) ((unsigned char)(TBL)[C])
252# define RE_TRANSLATE_P(TBL) (TBL)
253#endif
254
255/* Get the interface, including the syntax bits. */
256#include "regex.h"
257
258/* isalpha etc. are used for the character classes. */
259#include <ctype.h>
260
261#ifdef emacs
262
263/* 1 if C is an ASCII character. */
264# define IS_REAL_ASCII(c) ((c) < 0200)
265
266/* 1 if C is a unibyte character. */
267# define ISUNIBYTE(c) (SINGLE_BYTE_CHAR_P ((c)))
268
269/* The Emacs definitions should not be directly affected by locales. */
270
271/* In Emacs, these are only used for single-byte characters. */
272# define ISDIGIT(c) ((c) >= '0' && (c) <= '9')
273# define ISCNTRL(c) ((c) < ' ')
274# define ISXDIGIT(c) (((c) >= '0' && (c) <= '9') \
275 || ((c) >= 'a' && (c) <= 'f') \
276 || ((c) >= 'A' && (c) <= 'F'))
277
278/* This is only used for single-byte characters. */
279# define ISBLANK(c) ((c) == ' ' || (c) == '\t')
280
281/* The rest must handle multibyte characters. */
282
283# define ISGRAPH(c) (SINGLE_BYTE_CHAR_P (c) \
284 ? (c) > ' ' && !((c) >= 0177 && (c) <= 0237) \
285 : 1)
286
287# define ISPRINT(c) (SINGLE_BYTE_CHAR_P (c) \
288 ? (c) >= ' ' && !((c) >= 0177 && (c) <= 0237) \
289 : 1)
290
291# define ISALNUM(c) (IS_REAL_ASCII (c) \
292 ? (((c) >= 'a' && (c) <= 'z') \
293 || ((c) >= 'A' && (c) <= 'Z') \
294 || ((c) >= '0' && (c) <= '9')) \
295 : SYNTAX (c) == Sword)
296
297# define ISALPHA(c) (IS_REAL_ASCII (c) \
298 ? (((c) >= 'a' && (c) <= 'z') \
299 || ((c) >= 'A' && (c) <= 'Z')) \
300 : SYNTAX (c) == Sword)
301
302# define ISLOWER(c) (LOWERCASEP (c))
303
304# define ISPUNCT(c) (IS_REAL_ASCII (c) \
305 ? ((c) > ' ' && (c) < 0177 \
306 && !(((c) >= 'a' && (c) <= 'z') \
307 || ((c) >= 'A' && (c) <= 'Z') \
308 || ((c) >= '0' && (c) <= '9'))) \
309 : SYNTAX (c) != Sword)
310
311# define ISSPACE(c) (SYNTAX (c) == Swhitespace)
312
313# define ISUPPER(c) (UPPERCASEP (c))
314
315# define ISWORD(c) (SYNTAX (c) == Sword)
316
317#else /* not emacs */
318
319/* Jim Meyering writes:
320
321 "... Some ctype macros are valid only for character codes that
322 isascii says are ASCII (SGI's IRIX-4.0.5 is one such system --when
323 using /bin/cc or gcc but without giving an ansi option). So, all
324 ctype uses should be through macros like ISPRINT... If
325 STDC_HEADERS is defined, then autoconf has verified that the ctype
326 macros don't need to be guarded with references to isascii. ...
327 Defining isascii to 1 should let any compiler worth its salt
328 eliminate the && through constant folding."
329 Solaris defines some of these symbols so we must undefine them first. */
330
331# undef ISASCII
332# if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII)
333# define ISASCII(c) 1
334# else
335# define ISASCII(c) isascii(c)
336# endif
337
338/* 1 if C is an ASCII character. */
339# define IS_REAL_ASCII(c) ((c) < 0200)
340
341/* This distinction is not meaningful, except in Emacs. */
342# define ISUNIBYTE(c) 1
343
344# ifdef isblank
345# define ISBLANK(c) (ISASCII (c) && isblank (c))
346# else
347# define ISBLANK(c) ((c) == ' ' || (c) == '\t')
348# endif
349# ifdef isgraph
350# define ISGRAPH(c) (ISASCII (c) && isgraph (c))
351# else
352# define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c))
353# endif
354
355# undef ISPRINT
356# define ISPRINT(c) (ISASCII (c) && isprint (c))
357# define ISDIGIT(c) (ISASCII (c) && isdigit (c))
358# define ISALNUM(c) (ISASCII (c) && isalnum (c))
359# define ISALPHA(c) (ISASCII (c) && isalpha (c))
360# define ISCNTRL(c) (ISASCII (c) && iscntrl (c))
361# define ISLOWER(c) (ISASCII (c) && islower (c))
362# define ISPUNCT(c) (ISASCII (c) && ispunct (c))
363# define ISSPACE(c) (ISASCII (c) && isspace (c))
364# define ISUPPER(c) (ISASCII (c) && isupper (c))
365# define ISXDIGIT(c) (ISASCII (c) && isxdigit (c))
366
367# define ISWORD(c) ISALPHA(c)
368
369# ifdef _tolower
370# define TOLOWER(c) _tolower(c)
371# else
372# define TOLOWER(c) tolower(c)
373# endif
374
375/* How many characters in the character set. */
376# define CHAR_SET_SIZE 256
377
378# ifdef SYNTAX_TABLE
379
380extern char *re_syntax_table;
381
382# else /* not SYNTAX_TABLE */
383
384static char re_syntax_table[CHAR_SET_SIZE];
385
386static void
387init_syntax_once ()
388{
389 register int c;
390 static int done = 0;
391
392 if (done)
393 return;
394
395 bzero (re_syntax_table, sizeof re_syntax_table);
396
397 for (c = 0; c < CHAR_SET_SIZE; ++c)
398 if (ISALNUM (c))
399 re_syntax_table[c] = Sword;
400
401 re_syntax_table['_'] = Sword;
402
403 done = 1;
404}
405
406# endif /* not SYNTAX_TABLE */
407
408# define SYNTAX(c) re_syntax_table[(c)]
409
410#endif /* not emacs */
411
412#ifndef NULL
413# define NULL (void *)0
414#endif
415
416/* We remove any previous definition of `SIGN_EXTEND_CHAR',
417 since ours (we hope) works properly with all combinations of
418 machines, compilers, `char' and `unsigned char' argument types.
419 (Per Bothner suggested the basic approach.) */
420#undef SIGN_EXTEND_CHAR
421#if __STDC__
422# define SIGN_EXTEND_CHAR(c) ((signed char) (c))
423#else /* not __STDC__ */
424/* As in Harbison and Steele. */
425# define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128)
426#endif
427
428/* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we
429 use `alloca' instead of `malloc'. This is because using malloc in
430 re_search* or re_match* could cause memory leaks when C-g is used in
431 Emacs; also, malloc is slower and causes storage fragmentation. On
432 the other hand, malloc is more portable, and easier to debug.
433
434 Because we sometimes use alloca, some routines have to be macros,
435 not functions -- `alloca'-allocated space disappears at the end of the
436 function it is called in. */
437
438#ifdef REGEX_MALLOC
439
440# define REGEX_ALLOCATE malloc
441# define REGEX_REALLOCATE(source, osize, nsize) realloc (source, nsize)
442# define REGEX_FREE free
443
444#else /* not REGEX_MALLOC */
445
446/* Emacs already defines alloca, sometimes. */
447# ifndef alloca
448
449/* Make alloca work the best possible way. */
450# ifdef __GNUC__
451# define alloca __builtin_alloca
452# else /* not __GNUC__ */
453# if HAVE_ALLOCA_H
454# include <alloca.h>
455# endif /* HAVE_ALLOCA_H */
456# endif /* not __GNUC__ */
457
458# endif /* not alloca */
459
460# define REGEX_ALLOCATE alloca
461
462/* Assumes a `char *destination' variable. */
463# define REGEX_REALLOCATE(source, osize, nsize) \
464 (destination = (char *) alloca (nsize), \
465 memcpy (destination, source, osize))
466
467/* No need to do anything to free, after alloca. */
468# define REGEX_FREE(arg) ((void)0) /* Do nothing! But inhibit gcc warning. */
469
470#endif /* not REGEX_MALLOC */
471
472/* Define how to allocate the failure stack. */
473
474#if defined REL_ALLOC && defined REGEX_MALLOC
475
476# define REGEX_ALLOCATE_STACK(size) \
477 r_alloc (&failure_stack_ptr, (size))
478# define REGEX_REALLOCATE_STACK(source, osize, nsize) \
479 r_re_alloc (&failure_stack_ptr, (nsize))
480# define REGEX_FREE_STACK(ptr) \
481 r_alloc_free (&failure_stack_ptr)
482
483#else /* not using relocating allocator */
484
485# ifdef REGEX_MALLOC
486
487# define REGEX_ALLOCATE_STACK malloc
488# define REGEX_REALLOCATE_STACK(source, osize, nsize) realloc (source, nsize)
489# define REGEX_FREE_STACK free
490
491# else /* not REGEX_MALLOC */
492
493# define REGEX_ALLOCATE_STACK alloca
494
495# define REGEX_REALLOCATE_STACK(source, osize, nsize) \
496 REGEX_REALLOCATE (source, osize, nsize)
497/* No need to explicitly free anything. */
498# define REGEX_FREE_STACK(arg) ((void)0)
499
500# endif /* not REGEX_MALLOC */
501#endif /* not using relocating allocator */
502
503
504/* True if `size1' is non-NULL and PTR is pointing anywhere inside
505 `string1' or just past its end. This works if PTR is NULL, which is
506 a good thing. */
507#define FIRST_STRING_P(ptr) \
508 (size1 && string1 <= (ptr) && (ptr) <= string1 + size1)
509
510/* (Re)Allocate N items of type T using malloc, or fail. */
511#define TALLOC(n, t) ((t *) malloc ((n) * sizeof (t)))
512#define RETALLOC(addr, n, t) ((addr) = (t *) realloc (addr, (n) * sizeof (t)))
513#define RETALLOC_IF(addr, n, t) \
514 if (addr) RETALLOC((addr), (n), t); else (addr) = TALLOC ((n), t)
515#define REGEX_TALLOC(n, t) ((t *) REGEX_ALLOCATE ((n) * sizeof (t)))
516
517#define BYTEWIDTH 8 /* In bits. */
518
519#define STREQ(s1, s2) ((strcmp (s1, s2) == 0))
520
521#undef MAX
522#undef MIN
523#define MAX(a, b) ((a) > (b) ? (a) : (b))
524#define MIN(a, b) ((a) < (b) ? (a) : (b))
525
526/* Type of source-pattern and string chars. */
527typedef const unsigned char re_char;
528
529typedef char boolean;
530#define false 0
531#define true 1
532
533static int re_match_2_internal _RE_ARGS ((struct re_pattern_buffer *bufp,
534 re_char *string1, int size1,
535 re_char *string2, int size2,
536 int pos,
537 struct re_registers *regs,
538 int stop));
539
540/* These are the command codes that appear in compiled regular
541 expressions. Some opcodes are followed by argument bytes. A
542 command code can specify any interpretation whatsoever for its
543 arguments. Zero bytes may appear in the compiled regular expression. */
544
545typedef enum
546{
547 no_op = 0,
548
549 /* Succeed right away--no more backtracking. */
550 succeed,
551
552 /* Followed by one byte giving n, then by n literal bytes. */
553 exactn,
554
555 /* Matches any (more or less) character. */
556 anychar,
557
558 /* Matches any one char belonging to specified set. First
559 following byte is number of bitmap bytes. Then come bytes
560 for a bitmap saying which chars are in. Bits in each byte
561 are ordered low-bit-first. A character is in the set if its
562 bit is 1. A character too large to have a bit in the map is
563 automatically not in the set.
564
565 If the length byte has the 0x80 bit set, then that stuff
566 is followed by a range table:
567 2 bytes of flags for character sets (low 8 bits, high 8 bits)
568 See RANGE_TABLE_WORK_BITS below.
569 2 bytes, the number of pairs that follow (upto 32767)
570 pairs, each 2 multibyte characters,
571 each multibyte character represented as 3 bytes. */
572 charset,
573
574 /* Same parameters as charset, but match any character that is
575 not one of those specified. */
576 charset_not,
577
578 /* Start remembering the text that is matched, for storing in a
579 register. Followed by one byte with the register number, in
580 the range 0 to one less than the pattern buffer's re_nsub
581 field. */
582 start_memory,
583
584 /* Stop remembering the text that is matched and store it in a
585 memory register. Followed by one byte with the register
586 number, in the range 0 to one less than `re_nsub' in the
587 pattern buffer. */
588 stop_memory,
589
590 /* Match a duplicate of something remembered. Followed by one
591 byte containing the register number. */
592 duplicate,
593
594 /* Fail unless at beginning of line. */
595 begline,
596
597 /* Fail unless at end of line. */
598 endline,
599
600 /* Succeeds if at beginning of buffer (if emacs) or at beginning
601 of string to be matched (if not). */
602 begbuf,
603
604 /* Analogously, for end of buffer/string. */
605 endbuf,
606
607 /* Followed by two byte relative address to which to jump. */
608 jump,
609
610 /* Followed by two-byte relative address of place to resume at
611 in case of failure. */
612 on_failure_jump,
613
614 /* Like on_failure_jump, but pushes a placeholder instead of the
615 current string position when executed. */
616 on_failure_keep_string_jump,
617
618 /* Just like `on_failure_jump', except that it checks that we
619 don't get stuck in an infinite loop (matching an empty string
620 indefinitely). */
621 on_failure_jump_loop,
622
623 /* Just like `on_failure_jump_loop', except that it checks for
624 a different kind of loop (the kind that shows up with non-greedy
625 operators). This operation has to be immediately preceded
626 by a `no_op'. */
627 on_failure_jump_nastyloop,
628
629 /* A smart `on_failure_jump' used for greedy * and + operators.
630 It analyses the loop before which it is put and if the
631 loop does not require backtracking, it changes itself to
632 `on_failure_keep_string_jump' and short-circuits the loop,
633 else it just defaults to changing itself into `on_failure_jump'.
634 It assumes that it is pointing to just past a `jump'. */
635 on_failure_jump_smart,
636
637 /* Followed by two-byte relative address and two-byte number n.
638 After matching N times, jump to the address upon failure.
639 Does not work if N starts at 0: use on_failure_jump_loop
640 instead. */
641 succeed_n,
642
643 /* Followed by two-byte relative address, and two-byte number n.
644 Jump to the address N times, then fail. */
645 jump_n,
646
647 /* Set the following two-byte relative address to the
648 subsequent two-byte number. The address *includes* the two
649 bytes of number. */
650 set_number_at,
651
652 wordbeg, /* Succeeds if at word beginning. */
653 wordend, /* Succeeds if at word end. */
654
655 wordbound, /* Succeeds if at a word boundary. */
656 notwordbound, /* Succeeds if not at a word boundary. */
657
658 /* Matches any character whose syntax is specified. Followed by
659 a byte which contains a syntax code, e.g., Sword. */
660 syntaxspec,
661
662 /* Matches any character whose syntax is not that specified. */
663 notsyntaxspec
664
665#ifdef emacs
666 ,before_dot, /* Succeeds if before point. */
667 at_dot, /* Succeeds if at point. */
668 after_dot, /* Succeeds if after point. */
669
670 /* Matches any character whose category-set contains the specified
671 category. The operator is followed by a byte which contains a
672 category code (mnemonic ASCII character). */
673 categoryspec,
674
675 /* Matches any character whose category-set does not contain the
676 specified category. The operator is followed by a byte which
677 contains the category code (mnemonic ASCII character). */
678 notcategoryspec
679#endif /* emacs */
680} re_opcode_t;
681
682/* Common operations on the compiled pattern. */
683
684/* Store NUMBER in two contiguous bytes starting at DESTINATION. */
685
686#define STORE_NUMBER(destination, number) \
687 do { \
688 (destination)[0] = (number) & 0377; \
689 (destination)[1] = (number) >> 8; \
690 } while (0)
691
692/* Same as STORE_NUMBER, except increment DESTINATION to
693 the byte after where the number is stored. Therefore, DESTINATION
694 must be an lvalue. */
695
696#define STORE_NUMBER_AND_INCR(destination, number) \
697 do { \
698 STORE_NUMBER (destination, number); \
699 (destination) += 2; \
700 } while (0)
701
702/* Put into DESTINATION a number stored in two contiguous bytes starting
703 at SOURCE. */
704
705#define EXTRACT_NUMBER(destination, source) \
706 do { \
707 (destination) = *(source) & 0377; \
708 (destination) += SIGN_EXTEND_CHAR (*((source) + 1)) << 8; \
709 } while (0)
710
711#ifdef DEBUG
712static void extract_number _RE_ARGS ((int *dest, re_char *source));
713static void
714extract_number (dest, source)
715 int *dest;
716 re_char *source;
717{
718 int temp = SIGN_EXTEND_CHAR (*(source + 1));
719 *dest = *source & 0377;
720 *dest += temp << 8;
721}
722
723# ifndef EXTRACT_MACROS /* To debug the macros. */
724# undef EXTRACT_NUMBER
725# define EXTRACT_NUMBER(dest, src) extract_number (&dest, src)
726# endif /* not EXTRACT_MACROS */
727
728#endif /* DEBUG */
729
730/* Same as EXTRACT_NUMBER, except increment SOURCE to after the number.
731 SOURCE must be an lvalue. */
732
733#define EXTRACT_NUMBER_AND_INCR(destination, source) \
734 do { \
735 EXTRACT_NUMBER (destination, source); \
736 (source) += 2; \
737 } while (0)
738
739#ifdef DEBUG
740static void extract_number_and_incr _RE_ARGS ((int *destination,
741 re_char **source));
742static void
743extract_number_and_incr (destination, source)
744 int *destination;
745 re_char **source;
746{
747 extract_number (destination, *source);
748 *source += 2;
749}
750
751# ifndef EXTRACT_MACROS
752# undef EXTRACT_NUMBER_AND_INCR
753# define EXTRACT_NUMBER_AND_INCR(dest, src) \
754 extract_number_and_incr (&dest, &src)
755# endif /* not EXTRACT_MACROS */
756
757#endif /* DEBUG */
758
759/* Store a multibyte character in three contiguous bytes starting
760 DESTINATION, and increment DESTINATION to the byte after where the
761 character is stored. Therefore, DESTINATION must be an lvalue. */
762
763#define STORE_CHARACTER_AND_INCR(destination, character) \
764 do { \
765 (destination)[0] = (character) & 0377; \
766 (destination)[1] = ((character) >> 8) & 0377; \
767 (destination)[2] = (character) >> 16; \
768 (destination) += 3; \
769 } while (0)
770
771/* Put into DESTINATION a character stored in three contiguous bytes
772 starting at SOURCE. */
773
774#define EXTRACT_CHARACTER(destination, source) \
775 do { \
776 (destination) = ((source)[0] \
777 | ((source)[1] << 8) \
778 | ((source)[2] << 16)); \
779 } while (0)
780
781
782/* Macros for charset. */
783
784/* Size of bitmap of charset P in bytes. P is a start of charset,
785 i.e. *P is (re_opcode_t) charset or (re_opcode_t) charset_not. */
786#define CHARSET_BITMAP_SIZE(p) ((p)[1] & 0x7F)
787
788/* Nonzero if charset P has range table. */
789#define CHARSET_RANGE_TABLE_EXISTS_P(p) ((p)[1] & 0x80)
790
791/* Return the address of range table of charset P. But not the start
792 of table itself, but the before where the number of ranges is
793 stored. `2 +' means to skip re_opcode_t and size of bitmap,
794 and the 2 bytes of flags at the start of the range table. */
795#define CHARSET_RANGE_TABLE(p) (&(p)[4 + CHARSET_BITMAP_SIZE (p)])
796
797/* Extract the bit flags that start a range table. */
798#define CHARSET_RANGE_TABLE_BITS(p) \
799 ((p)[2 + CHARSET_BITMAP_SIZE (p)] \
800 + (p)[3 + CHARSET_BITMAP_SIZE (p)] * 0x100)
801
802/* Test if C is listed in the bitmap of charset P. */
803#define CHARSET_LOOKUP_BITMAP(p, c) \
804 ((c) < CHARSET_BITMAP_SIZE (p) * BYTEWIDTH \
805 && (p)[2 + (c) / BYTEWIDTH] & (1 << ((c) % BYTEWIDTH)))
806
807/* Return the address of end of RANGE_TABLE. COUNT is number of
808 ranges (which is a pair of (start, end)) in the RANGE_TABLE. `* 2'
809 is start of range and end of range. `* 3' is size of each start
810 and end. */
811#define CHARSET_RANGE_TABLE_END(range_table, count) \
812 ((range_table) + (count) * 2 * 3)
813
814/* Test if C is in RANGE_TABLE. A flag NOT is negated if C is in.
815 COUNT is number of ranges in RANGE_TABLE. */
816#define CHARSET_LOOKUP_RANGE_TABLE_RAW(not, c, range_table, count) \
817 do \
818 { \
819 re_wchar_t range_start, range_end; \
820 re_char *p; \
821 re_char *range_table_end \
822 = CHARSET_RANGE_TABLE_END ((range_table), (count)); \
823 \
824 for (p = (range_table); p < range_table_end; p += 2 * 3) \
825 { \
826 EXTRACT_CHARACTER (range_start, p); \
827 EXTRACT_CHARACTER (range_end, p + 3); \
828 \
829 if (range_start <= (c) && (c) <= range_end) \
830 { \
831 (not) = !(not); \
832 break; \
833 } \
834 } \
835 } \
836 while (0)
837
838/* Test if C is in range table of CHARSET. The flag NOT is negated if
839 C is listed in it. */
840#define CHARSET_LOOKUP_RANGE_TABLE(not, c, charset) \
841 do \
842 { \
843 /* Number of ranges in range table. */ \
844 int count; \
845 re_char *range_table = CHARSET_RANGE_TABLE (charset); \
846 \
847 EXTRACT_NUMBER_AND_INCR (count, range_table); \
848 CHARSET_LOOKUP_RANGE_TABLE_RAW ((not), (c), range_table, count); \
849 } \
850 while (0)
851
852/* If DEBUG is defined, Regex prints many voluminous messages about what
853 it is doing (if the variable `debug' is nonzero). If linked with the
854 main program in `iregex.c', you can enter patterns and strings
855 interactively. And if linked with the main program in `main.c' and
856 the other test files, you can run the already-written tests. */
857
858#ifdef DEBUG
859
860/* We use standard I/O for debugging. */
861# include <stdio.h>
862
863/* It is useful to test things that ``must'' be true when debugging. */
864# include <assert.h>
865
866static int debug = -100000;
867
868# define DEBUG_STATEMENT(e) e
869# define DEBUG_PRINT1(x) if (debug > 0) printf (x)
870# define DEBUG_PRINT2(x1, x2) if (debug > 0) printf (x1, x2)
871# define DEBUG_PRINT3(x1, x2, x3) if (debug > 0) printf (x1, x2, x3)
872# define DEBUG_PRINT4(x1, x2, x3, x4) if (debug > 0) printf (x1, x2, x3, x4)
873# define DEBUG_PRINT_COMPILED_PATTERN(p, s, e) \
874 if (debug > 0) print_partial_compiled_pattern (s, e)
875# define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2) \
876 if (debug > 0) print_double_string (w, s1, sz1, s2, sz2)
877
878
879/* Print the fastmap in human-readable form. */
880
881void
882print_fastmap (fastmap)
883 char *fastmap;
884{
885 unsigned was_a_range = 0;
886 unsigned i = 0;
887
888 while (i < (1 << BYTEWIDTH))
889 {
890 if (fastmap[i++])
891 {
892 was_a_range = 0;
893 putchar (i - 1);
894 while (i < (1 << BYTEWIDTH) && fastmap[i])
895 {
896 was_a_range = 1;
897 i++;
898 }
899 if (was_a_range)
900 {
901 printf ("-");
902 putchar (i - 1);
903 }
904 }
905 }
906 putchar ('\n');
907}
908
909
910/* Print a compiled pattern string in human-readable form, starting at
911 the START pointer into it and ending just before the pointer END. */
912
913void
914print_partial_compiled_pattern (start, end)
915 re_char *start;
916 re_char *end;
917{
918 int mcnt, mcnt2;
919 re_char *p = start;
920 re_char *pend = end;
921
922 if (start == NULL)
923 {
924 fprintf (stderr, "(null)\n");
925 return;
926 }
927
928 /* Loop over pattern commands. */
929 while (p < pend)
930 {
931 fprintf (stderr, "%d:\t", p - start);
932
933 switch ((re_opcode_t) *p++)
934 {
935 case no_op:
936 fprintf (stderr, "/no_op");
937 break;
938
939 case succeed:
940 fprintf (stderr, "/succeed");
941 break;
942
943 case exactn:
944 mcnt = *p++;
945 fprintf (stderr, "/exactn/%d", mcnt);
946 do
947 {
948 fprintf (stderr, "/%c", *p++);
949 }
950 while (--mcnt);
951 break;
952
953 case start_memory:
954 fprintf (stderr, "/start_memory/%d", *p++);
955 break;
956
957 case stop_memory:
958 fprintf (stderr, "/stop_memory/%d", *p++);
959 break;
960
961 case duplicate:
962 fprintf (stderr, "/duplicate/%d", *p++);
963 break;
964
965 case anychar:
966 fprintf (stderr, "/anychar");
967 break;
968
969 case charset:
970 case charset_not:
971 {
972 register int c, last = -100;
973 register int in_range = 0;
974 int length = CHARSET_BITMAP_SIZE (p - 1);
975 int has_range_table = CHARSET_RANGE_TABLE_EXISTS_P (p - 1);
976
977 fprintf (stderr, "/charset [%s",
978 (re_opcode_t) *(p - 1) == charset_not ? "^" : "");
979
980 if (p + *p >= pend)
981 fprintf (stderr, " !extends past end of pattern! ");
982
983 for (c = 0; c < 256; c++)
984 if (c / 8 < length
985 && (p[1 + (c/8)] & (1 << (c % 8))))
986 {
987 /* Are we starting a range? */
988 if (last + 1 == c && ! in_range)
989 {
990 fprintf (stderr, "-");
991 in_range = 1;
992 }
993 /* Have we broken a range? */
994 else if (last + 1 != c && in_range)
995 {
996 fprintf (stderr, "%c", last);
997 in_range = 0;
998 }
999
1000 if (! in_range)
1001 fprintf (stderr, "%c", c);
1002
1003 last = c;
1004 }
1005
1006 if (in_range)
1007 fprintf (stderr, "%c", last);
1008
1009 fprintf (stderr, "]");
1010
1011 p += 1 + length;
1012
1013 if (has_range_table)
1014 {
1015 int count;
1016 fprintf (stderr, "has-range-table");
1017
1018 /* ??? Should print the range table; for now, just skip it. */
1019 p += 2; /* skip range table bits */
1020 EXTRACT_NUMBER_AND_INCR (count, p);
1021 p = CHARSET_RANGE_TABLE_END (p, count);
1022 }
1023 }
1024 break;
1025
1026 case begline:
1027 fprintf (stderr, "/begline");
1028 break;
1029
1030 case endline:
1031 fprintf (stderr, "/endline");
1032 break;
1033
1034 case on_failure_jump:
1035 extract_number_and_incr (&mcnt, &p);
1036 fprintf (stderr, "/on_failure_jump to %d", p + mcnt - start);
1037 break;
1038
1039 case on_failure_keep_string_jump:
1040 extract_number_and_incr (&mcnt, &p);
1041 fprintf (stderr, "/on_failure_keep_string_jump to %d", p + mcnt - start);
1042 break;
1043
1044 case on_failure_jump_nastyloop:
1045 extract_number_and_incr (&mcnt, &p);
1046 fprintf (stderr, "/on_failure_jump_nastyloop to %d", p + mcnt - start);
1047 break;
1048
1049 case on_failure_jump_loop:
1050 extract_number_and_incr (&mcnt, &p);
1051 fprintf (stderr, "/on_failure_jump_loop to %d", p + mcnt - start);
1052 break;
1053
1054 case on_failure_jump_smart:
1055 extract_number_and_incr (&mcnt, &p);
1056 fprintf (stderr, "/on_failure_jump_smart to %d", p + mcnt - start);
1057 break;
1058
1059 case jump:
1060 extract_number_and_incr (&mcnt, &p);
1061 fprintf (stderr, "/jump to %d", p + mcnt - start);
1062 break;
1063
1064 case succeed_n:
1065 extract_number_and_incr (&mcnt, &p);
1066 extract_number_and_incr (&mcnt2, &p);
1067 fprintf (stderr, "/succeed_n to %d, %d times", p - 2 + mcnt - start, mcnt2);
1068 break;
1069
1070 case jump_n:
1071 extract_number_and_incr (&mcnt, &p);
1072 extract_number_and_incr (&mcnt2, &p);
1073 fprintf (stderr, "/jump_n to %d, %d times", p - 2 + mcnt - start, mcnt2);
1074 break;
1075
1076 case set_number_at:
1077 extract_number_and_incr (&mcnt, &p);
1078 extract_number_and_incr (&mcnt2, &p);
1079 fprintf (stderr, "/set_number_at location %d to %d", p - 2 + mcnt - start, mcnt2);
1080 break;
1081
1082 case wordbound:
1083 fprintf (stderr, "/wordbound");
1084 break;
1085
1086 case notwordbound:
1087 fprintf (stderr, "/notwordbound");
1088 break;
1089
1090 case wordbeg:
1091 fprintf (stderr, "/wordbeg");
1092 break;
1093
1094 case wordend:
1095 fprintf (stderr, "/wordend");
1096
1097 case syntaxspec:
1098 fprintf (stderr, "/syntaxspec");
1099 mcnt = *p++;
1100 fprintf (stderr, "/%d", mcnt);
1101 break;
1102
1103 case notsyntaxspec:
1104 fprintf (stderr, "/notsyntaxspec");
1105 mcnt = *p++;
1106 fprintf (stderr, "/%d", mcnt);
1107 break;
1108
1109# ifdef emacs
1110 case before_dot:
1111 fprintf (stderr, "/before_dot");
1112 break;
1113
1114 case at_dot:
1115 fprintf (stderr, "/at_dot");
1116 break;
1117
1118 case after_dot:
1119 fprintf (stderr, "/after_dot");
1120 break;
1121
1122 case categoryspec:
1123 fprintf (stderr, "/categoryspec");
1124 mcnt = *p++;
1125 fprintf (stderr, "/%d", mcnt);
1126 break;
1127
1128 case notcategoryspec:
1129 fprintf (stderr, "/notcategoryspec");
1130 mcnt = *p++;
1131 fprintf (stderr, "/%d", mcnt);
1132 break;
1133# endif /* emacs */
1134
1135 case begbuf:
1136 fprintf (stderr, "/begbuf");
1137 break;
1138
1139 case endbuf:
1140 fprintf (stderr, "/endbuf");
1141 break;
1142
1143 default:
1144 fprintf (stderr, "?%d", *(p-1));
1145 }
1146
1147 fprintf (stderr, "\n");
1148 }
1149
1150 fprintf (stderr, "%d:\tend of pattern.\n", p - start);
1151}
1152
1153
1154void
1155print_compiled_pattern (bufp)
1156 struct re_pattern_buffer *bufp;
1157{
1158 re_char *buffer = bufp->buffer;
1159
1160 print_partial_compiled_pattern (buffer, buffer + bufp->used);
1161 printf ("%ld bytes used/%ld bytes allocated.\n",
1162 bufp->used, bufp->allocated);
1163
1164 if (bufp->fastmap_accurate && bufp->fastmap)
1165 {
1166 printf ("fastmap: ");
1167 print_fastmap (bufp->fastmap);
1168 }
1169
1170 printf ("re_nsub: %d\t", bufp->re_nsub);
1171 printf ("regs_alloc: %d\t", bufp->regs_allocated);
1172 printf ("can_be_null: %d\t", bufp->can_be_null);
1173 printf ("no_sub: %d\t", bufp->no_sub);
1174 printf ("not_bol: %d\t", bufp->not_bol);
1175 printf ("not_eol: %d\t", bufp->not_eol);
1176 printf ("syntax: %lx\n", bufp->syntax);
1177 fflush (stdout);
1178 /* Perhaps we should print the translate table? */
1179}
1180
1181
1182void
1183print_double_string (where, string1, size1, string2, size2)
1184 re_char *where;
1185 re_char *string1;
1186 re_char *string2;
1187 int size1;
1188 int size2;
1189{
1190 int this_char;
1191
1192 if (where == NULL)
1193 printf ("(null)");
1194 else
1195 {
1196 if (FIRST_STRING_P (where))
1197 {
1198 for (this_char = where - string1; this_char < size1; this_char++)
1199 putchar (string1[this_char]);
1200
1201 where = string2;
1202 }
1203
1204 for (this_char = where - string2; this_char < size2; this_char++)
1205 putchar (string2[this_char]);
1206 }
1207}
1208
1209#else /* not DEBUG */
1210
1211# undef assert
1212# define assert(e)
1213
1214# define DEBUG_STATEMENT(e)
1215# define DEBUG_PRINT1(x)
1216# define DEBUG_PRINT2(x1, x2)
1217# define DEBUG_PRINT3(x1, x2, x3)
1218# define DEBUG_PRINT4(x1, x2, x3, x4)
1219# define DEBUG_PRINT_COMPILED_PATTERN(p, s, e)
1220# define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2)
1221
1222#endif /* not DEBUG */
1223
1224/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
1225 also be assigned to arbitrarily: each pattern buffer stores its own
1226 syntax, so it can be changed between regex compilations. */
1227/* This has no initializer because initialized variables in Emacs
1228 become read-only after dumping. */
1229reg_syntax_t re_syntax_options;
1230
1231
1232/* Specify the precise syntax of regexps for compilation. This provides
1233 for compatibility for various utilities which historically have
1234 different, incompatible syntaxes.
1235
1236 The argument SYNTAX is a bit mask comprised of the various bits
1237 defined in regex.h. We return the old syntax. */
1238
1239reg_syntax_t
1240re_set_syntax (syntax)
1241 reg_syntax_t syntax;
1242{
1243 reg_syntax_t ret = re_syntax_options;
1244
1245 re_syntax_options = syntax;
1246 return ret;
1247}
1248WEAK_ALIAS (__re_set_syntax, re_set_syntax)
1249
1250/* This table gives an error message for each of the error codes listed
1251 in regex.h. Obviously the order here has to be same as there.
1252 POSIX doesn't require that we do anything for REG_NOERROR,
1253 but why not be nice? */
1254
1255static const char *re_error_msgid[] =
1256 {
1257 gettext_noop ("Success"), /* REG_NOERROR */
1258 gettext_noop ("No match"), /* REG_NOMATCH */
1259 gettext_noop ("Invalid regular expression"), /* REG_BADPAT */
1260 gettext_noop ("Invalid collation character"), /* REG_ECOLLATE */
1261 gettext_noop ("Invalid character class name"), /* REG_ECTYPE */
1262 gettext_noop ("Trailing backslash"), /* REG_EESCAPE */
1263 gettext_noop ("Invalid back reference"), /* REG_ESUBREG */
1264 gettext_noop ("Unmatched [ or [^"), /* REG_EBRACK */
1265 gettext_noop ("Unmatched ( or \\("), /* REG_EPAREN */
1266 gettext_noop ("Unmatched \\{"), /* REG_EBRACE */
1267 gettext_noop ("Invalid content of \\{\\}"), /* REG_BADBR */
1268 gettext_noop ("Invalid range end"), /* REG_ERANGE */
1269 gettext_noop ("Memory exhausted"), /* REG_ESPACE */
1270 gettext_noop ("Invalid preceding regular expression"), /* REG_BADRPT */
1271 gettext_noop ("Premature end of regular expression"), /* REG_EEND */
1272 gettext_noop ("Regular expression too big"), /* REG_ESIZE */
1273 gettext_noop ("Unmatched ) or \\)"), /* REG_ERPAREN */
1274 };
1275
1276/* Avoiding alloca during matching, to placate r_alloc. */
1277
1278/* Define MATCH_MAY_ALLOCATE unless we need to make sure that the
1279 searching and matching functions should not call alloca. On some
1280 systems, alloca is implemented in terms of malloc, and if we're
1281 using the relocating allocator routines, then malloc could cause a
1282 relocation, which might (if the strings being searched are in the
1283 ralloc heap) shift the data out from underneath the regexp
1284 routines.
1285
1286 Here's another reason to avoid allocation: Emacs
1287 processes input from X in a signal handler; processing X input may
1288 call malloc; if input arrives while a matching routine is calling
1289 malloc, then we're scrod. But Emacs can't just block input while
1290 calling matching routines; then we don't notice interrupts when
1291 they come in. So, Emacs blocks input around all regexp calls
1292 except the matching calls, which it leaves unprotected, in the
1293 faith that they will not malloc. */
1294
1295/* Normally, this is fine. */
1296#define MATCH_MAY_ALLOCATE
1297
1298/* When using GNU C, we are not REALLY using the C alloca, no matter
1299 what config.h may say. So don't take precautions for it. */
1300#ifdef __GNUC__
1301# undef C_ALLOCA
1302#endif
1303
1304/* The match routines may not allocate if (1) they would do it with malloc
1305 and (2) it's not safe for them to use malloc.
1306 Note that if REL_ALLOC is defined, matching would not use malloc for the
1307 failure stack, but we would still use it for the register vectors;
1308 so REL_ALLOC should not affect this. */
1309#if (defined C_ALLOCA || defined REGEX_MALLOC) && defined emacs
1310# undef MATCH_MAY_ALLOCATE
1311#endif
1312
1313
1314/* Failure stack declarations and macros; both re_compile_fastmap and
1315 re_match_2 use a failure stack. These have to be macros because of
1316 REGEX_ALLOCATE_STACK. */
1317
1318
1319/* Approximate number of failure points for which to initially allocate space
1320 when matching. If this number is exceeded, we allocate more
1321 space, so it is not a hard limit. */
1322#ifndef INIT_FAILURE_ALLOC
1323# define INIT_FAILURE_ALLOC 20
1324#endif
1325
1326/* Roughly the maximum number of failure points on the stack. Would be
1327 exactly that if always used TYPICAL_FAILURE_SIZE items each time we failed.
1328 This is a variable only so users of regex can assign to it; we never
1329 change it ourselves. We always multiply it by TYPICAL_FAILURE_SIZE
1330 before using it, so it should probably be a byte-count instead. */
1331# if defined MATCH_MAY_ALLOCATE
1332/* Note that 4400 was enough to cause a crash on Alpha OSF/1,
1333 whose default stack limit is 2mb. In order for a larger
1334 value to work reliably, you have to try to make it accord
1335 with the process stack limit. */
1336size_t re_max_failures = 40000;
1337# else
1338size_t re_max_failures = 4000;
1339# endif
1340
1341union fail_stack_elt
1342{
1343 re_char *pointer;
1344 /* This should be the biggest `int' that's no bigger than a pointer. */
1345 long integer;
1346};
1347
1348typedef union fail_stack_elt fail_stack_elt_t;
1349
1350typedef struct
1351{
1352 fail_stack_elt_t *stack;
1353 size_t size;
1354 size_t avail; /* Offset of next open position. */
1355 size_t frame; /* Offset of the cur constructed frame. */
1356} fail_stack_type;
1357
1358#define FAIL_STACK_EMPTY() (fail_stack.frame == 0)
1359#define FAIL_STACK_FULL() (fail_stack.avail == fail_stack.size)
1360
1361
1362/* Define macros to initialize and free the failure stack.
1363 Do `return -2' if the alloc fails. */
1364
1365#ifdef MATCH_MAY_ALLOCATE
1366# define INIT_FAIL_STACK() \
1367 do { \
1368 fail_stack.stack = (fail_stack_elt_t *) \
1369 REGEX_ALLOCATE_STACK (INIT_FAILURE_ALLOC * TYPICAL_FAILURE_SIZE \
1370 * sizeof (fail_stack_elt_t)); \
1371 \
1372 if (fail_stack.stack == NULL) \
1373 return -2; \
1374 \
1375 fail_stack.size = INIT_FAILURE_ALLOC; \
1376 fail_stack.avail = 0; \
1377 fail_stack.frame = 0; \
1378 } while (0)
1379
1380# define RESET_FAIL_STACK() REGEX_FREE_STACK (fail_stack.stack)
1381#else
1382# define INIT_FAIL_STACK() \
1383 do { \
1384 fail_stack.avail = 0; \
1385 fail_stack.frame = 0; \
1386 } while (0)
1387
1388# define RESET_FAIL_STACK() ((void)0)
1389#endif
1390
1391
1392/* Double the size of FAIL_STACK, up to a limit
1393 which allows approximately `re_max_failures' items.
1394
1395 Return 1 if succeeds, and 0 if either ran out of memory
1396 allocating space for it or it was already too large.
1397
1398 REGEX_REALLOCATE_STACK requires `destination' be declared. */
1399
1400/* Factor to increase the failure stack size by
1401 when we increase it.
1402 This used to be 2, but 2 was too wasteful
1403 because the old discarded stacks added up to as much space
1404 were as ultimate, maximum-size stack. */
1405#define FAIL_STACK_GROWTH_FACTOR 4
1406
1407#define GROW_FAIL_STACK(fail_stack) \
1408 (((fail_stack).size * sizeof (fail_stack_elt_t) \
1409 >= re_max_failures * TYPICAL_FAILURE_SIZE) \
1410 ? 0 \
1411 : ((fail_stack).stack \
1412 = (fail_stack_elt_t *) \
1413 REGEX_REALLOCATE_STACK ((fail_stack).stack, \
1414 (fail_stack).size * sizeof (fail_stack_elt_t), \
1415 MIN (re_max_failures * TYPICAL_FAILURE_SIZE, \
1416 ((fail_stack).size * sizeof (fail_stack_elt_t) \
1417 * FAIL_STACK_GROWTH_FACTOR))), \
1418 \
1419 (fail_stack).stack == NULL \
1420 ? 0 \
1421 : ((fail_stack).size \
1422 = (MIN (re_max_failures * TYPICAL_FAILURE_SIZE, \
1423 ((fail_stack).size * sizeof (fail_stack_elt_t) \
1424 * FAIL_STACK_GROWTH_FACTOR)) \
1425 / sizeof (fail_stack_elt_t)), \
1426 1)))
1427
1428
1429/* Push a pointer value onto the failure stack.
1430 Assumes the variable `fail_stack'. Probably should only
1431 be called from within `PUSH_FAILURE_POINT'. */
1432#define PUSH_FAILURE_POINTER(item) \
1433 fail_stack.stack[fail_stack.avail++].pointer = (item)
1434
1435/* This pushes an integer-valued item onto the failure stack.
1436 Assumes the variable `fail_stack'. Probably should only
1437 be called from within `PUSH_FAILURE_POINT'. */
1438#define PUSH_FAILURE_INT(item) \
1439 fail_stack.stack[fail_stack.avail++].integer = (item)
1440
1441/* Push a fail_stack_elt_t value onto the failure stack.
1442 Assumes the variable `fail_stack'. Probably should only
1443 be called from within `PUSH_FAILURE_POINT'. */
1444#define PUSH_FAILURE_ELT(item) \
1445 fail_stack.stack[fail_stack.avail++] = (item)
1446
1447/* These three POP... operations complement the three PUSH... operations.
1448 All assume that `fail_stack' is nonempty. */
1449#define POP_FAILURE_POINTER() fail_stack.stack[--fail_stack.avail].pointer
1450#define POP_FAILURE_INT() fail_stack.stack[--fail_stack.avail].integer
1451#define POP_FAILURE_ELT() fail_stack.stack[--fail_stack.avail]
1452
1453/* Individual items aside from the registers. */
1454#define NUM_NONREG_ITEMS 3
1455
1456/* Used to examine the stack (to detect infinite loops). */
1457#define FAILURE_PAT(h) fail_stack.stack[(h) - 1].pointer
1458#define FAILURE_STR(h) (fail_stack.stack[(h) - 2].pointer)
1459#define NEXT_FAILURE_HANDLE(h) fail_stack.stack[(h) - 3].integer
1460#define TOP_FAILURE_HANDLE() fail_stack.frame
1461
1462
1463#define ENSURE_FAIL_STACK(space) \
1464while (REMAINING_AVAIL_SLOTS <= space) { \
1465 if (!GROW_FAIL_STACK (fail_stack)) \
1466 return -2; \
1467 DEBUG_PRINT2 ("\n Doubled stack; size now: %d\n", (fail_stack).size);\
1468 DEBUG_PRINT2 (" slots available: %d\n", REMAINING_AVAIL_SLOTS);\
1469}
1470
1471/* Push register NUM onto the stack. */
1472#define PUSH_FAILURE_REG(num) \
1473do { \
1474 char *destination; \
1475 ENSURE_FAIL_STACK(3); \
1476 DEBUG_PRINT4 (" Push reg %d (spanning %p -> %p)\n", \
1477 num, regstart[num], regend[num]); \
1478 PUSH_FAILURE_POINTER (regstart[num]); \
1479 PUSH_FAILURE_POINTER (regend[num]); \
1480 PUSH_FAILURE_INT (num); \
1481} while (0)
1482
1483/* Change the counter's value to VAL, but make sure that it will
1484 be reset when backtracking. */
1485#define PUSH_NUMBER(ptr,val) \
1486do { \
1487 char *destination; \
1488 int c; \
1489 ENSURE_FAIL_STACK(3); \
1490 EXTRACT_NUMBER (c, ptr); \
1491 DEBUG_PRINT4 (" Push number %p = %d -> %d\n", ptr, c, val); \
1492 PUSH_FAILURE_INT (c); \
1493 PUSH_FAILURE_POINTER (ptr); \
1494 PUSH_FAILURE_INT (-1); \
1495 STORE_NUMBER (ptr, val); \
1496} while (0)
1497
1498/* Pop a saved register off the stack. */
1499#define POP_FAILURE_REG_OR_COUNT() \
1500do { \
1501 int reg = POP_FAILURE_INT (); \
1502 if (reg == -1) \
1503 { \
1504 /* It's a counter. */ \
1505 /* Here, we discard `const', making re_match non-reentrant. */ \
1506 unsigned char *ptr = (unsigned char*) POP_FAILURE_POINTER (); \
1507 reg = POP_FAILURE_INT (); \
1508 STORE_NUMBER (ptr, reg); \
1509 DEBUG_PRINT3 (" Pop counter %p = %d\n", ptr, reg); \
1510 } \
1511 else \
1512 { \
1513 regend[reg] = POP_FAILURE_POINTER (); \
1514 regstart[reg] = POP_FAILURE_POINTER (); \
1515 DEBUG_PRINT4 (" Pop reg %d (spanning %p -> %p)\n", \
1516 reg, regstart[reg], regend[reg]); \
1517 } \
1518} while (0)
1519
1520/* Check that we are not stuck in an infinite loop. */
1521#define CHECK_INFINITE_LOOP(pat_cur, string_place) \
1522do { \
1523 int failure = TOP_FAILURE_HANDLE (); \
1524 /* Check for infinite matching loops */ \
1525 while (failure > 0 \
1526 && (FAILURE_STR (failure) == string_place \
1527 || FAILURE_STR (failure) == NULL)) \
1528 { \
1529 assert (FAILURE_PAT (failure) >= bufp->buffer \
1530 && FAILURE_PAT (failure) <= bufp->buffer + bufp->used); \
1531 if (FAILURE_PAT (failure) == pat_cur) \
1532 { \
1533 cycle = 1; \
1534 break; \
1535 } \
1536 DEBUG_PRINT2 (" Other pattern: %p\n", FAILURE_PAT (failure)); \
1537 failure = NEXT_FAILURE_HANDLE(failure); \
1538 } \
1539 DEBUG_PRINT2 (" Other string: %p\n", FAILURE_STR (failure)); \
1540} while (0)
1541
1542/* Push the information about the state we will need
1543 if we ever fail back to it.
1544
1545 Requires variables fail_stack, regstart, regend and
1546 num_regs be declared. GROW_FAIL_STACK requires `destination' be
1547 declared.
1548
1549 Does `return FAILURE_CODE' if runs out of memory. */
1550
1551#define PUSH_FAILURE_POINT(pattern, string_place) \
1552do { \
1553 char *destination; \
1554 /* Must be int, so when we don't save any registers, the arithmetic \
1555 of 0 + -1 isn't done as unsigned. */ \
1556 \
1557 DEBUG_STATEMENT (nfailure_points_pushed++); \
1558 DEBUG_PRINT1 ("\nPUSH_FAILURE_POINT:\n"); \
1559 DEBUG_PRINT2 (" Before push, next avail: %d\n", (fail_stack).avail); \
1560 DEBUG_PRINT2 (" size: %d\n", (fail_stack).size);\
1561 \
1562 ENSURE_FAIL_STACK (NUM_NONREG_ITEMS); \
1563 \
1564 DEBUG_PRINT1 ("\n"); \
1565 \
1566 DEBUG_PRINT2 (" Push frame index: %d\n", fail_stack.frame); \
1567 PUSH_FAILURE_INT (fail_stack.frame); \
1568 \
1569 DEBUG_PRINT2 (" Push string %p: `", string_place); \
1570 DEBUG_PRINT_DOUBLE_STRING (string_place, string1, size1, string2, size2);\
1571 DEBUG_PRINT1 ("'\n"); \
1572 PUSH_FAILURE_POINTER (string_place); \
1573 \
1574 DEBUG_PRINT2 (" Push pattern %p: ", pattern); \
1575 DEBUG_PRINT_COMPILED_PATTERN (bufp, pattern, pend); \
1576 PUSH_FAILURE_POINTER (pattern); \
1577 \
1578 /* Close the frame by moving the frame pointer past it. */ \
1579 fail_stack.frame = fail_stack.avail; \
1580} while (0)
1581
1582/* Estimate the size of data pushed by a typical failure stack entry.
1583 An estimate is all we need, because all we use this for
1584 is to choose a limit for how big to make the failure stack. */
1585/* BEWARE, the value `20' is hard-coded in emacs.c:main(). */
1586#define TYPICAL_FAILURE_SIZE 20
1587
1588/* How many items can still be added to the stack without overflowing it. */
1589#define REMAINING_AVAIL_SLOTS ((fail_stack).size - (fail_stack).avail)
1590
1591
1592/* Pops what PUSH_FAIL_STACK pushes.
1593
1594 We restore into the parameters, all of which should be lvalues:
1595 STR -- the saved data position.
1596 PAT -- the saved pattern position.
1597 REGSTART, REGEND -- arrays of string positions.
1598
1599 Also assumes the variables `fail_stack' and (if debugging), `bufp',
1600 `pend', `string1', `size1', `string2', and `size2'. */
1601
1602#define POP_FAILURE_POINT(str, pat) \
1603do { \
1604 assert (!FAIL_STACK_EMPTY ()); \
1605 \
1606 /* Remove failure points and point to how many regs pushed. */ \
1607 DEBUG_PRINT1 ("POP_FAILURE_POINT:\n"); \
1608 DEBUG_PRINT2 (" Before pop, next avail: %d\n", fail_stack.avail); \
1609 DEBUG_PRINT2 (" size: %d\n", fail_stack.size); \
1610 \
1611 /* Pop the saved registers. */ \
1612 while (fail_stack.frame < fail_stack.avail) \
1613 POP_FAILURE_REG_OR_COUNT (); \
1614 \
1615 pat = POP_FAILURE_POINTER (); \
1616 DEBUG_PRINT2 (" Popping pattern %p: ", pat); \
1617 DEBUG_PRINT_COMPILED_PATTERN (bufp, pat, pend); \
1618 \
1619 /* If the saved string location is NULL, it came from an \
1620 on_failure_keep_string_jump opcode, and we want to throw away the \
1621 saved NULL, thus retaining our current position in the string. */ \
1622 str = POP_FAILURE_POINTER (); \
1623 DEBUG_PRINT2 (" Popping string %p: `", str); \
1624 DEBUG_PRINT_DOUBLE_STRING (str, string1, size1, string2, size2); \
1625 DEBUG_PRINT1 ("'\n"); \
1626 \
1627 fail_stack.frame = POP_FAILURE_INT (); \
1628 DEBUG_PRINT2 (" Popping frame index: %d\n", fail_stack.frame); \
1629 \
1630 assert (fail_stack.avail >= 0); \
1631 assert (fail_stack.frame <= fail_stack.avail); \
1632 \
1633 DEBUG_STATEMENT (nfailure_points_popped++); \
1634} while (0) /* POP_FAILURE_POINT */
1635
1636
1637
1638/* Registers are set to a sentinel when they haven't yet matched. */
1639#define REG_UNSET(e) ((e) == NULL)
1640
1641/* Subroutine declarations and macros for regex_compile. */
1642
1643static reg_errcode_t regex_compile _RE_ARGS ((re_char *pattern, size_t size,
1644 reg_syntax_t syntax,
1645 struct re_pattern_buffer *bufp));
1646static void store_op1 _RE_ARGS ((re_opcode_t op, unsigned char *loc, int arg));
1647static void store_op2 _RE_ARGS ((re_opcode_t op, unsigned char *loc,
1648 int arg1, int arg2));
1649static void insert_op1 _RE_ARGS ((re_opcode_t op, unsigned char *loc,
1650 int arg, unsigned char *end));
1651static void insert_op2 _RE_ARGS ((re_opcode_t op, unsigned char *loc,
1652 int arg1, int arg2, unsigned char *end));
1653static boolean at_begline_loc_p _RE_ARGS ((re_char *pattern,
1654 re_char *p,
1655 reg_syntax_t syntax));
1656static boolean at_endline_loc_p _RE_ARGS ((re_char *p,
1657 re_char *pend,
1658 reg_syntax_t syntax));
1659static re_char *skip_one_char _RE_ARGS ((re_char *p));
1660static int analyse_first _RE_ARGS ((re_char *p, re_char *pend,
1661 char *fastmap, const int multibyte));
1662
1663/* Fetch the next character in the uncompiled pattern, with no
1664 translation. */
1665#define PATFETCH(c) \
1666 do { \
1667 int len; \
1668 if (p == pend) return REG_EEND; \
1669 c = RE_STRING_CHAR_AND_LENGTH (p, pend - p, len); \
1670 p += len; \
1671 } while (0)
1672
1673
1674/* If `translate' is non-null, return translate[D], else just D. We
1675 cast the subscript to translate because some data is declared as
1676 `char *', to avoid warnings when a string constant is passed. But
1677 when we use a character as a subscript we must make it unsigned. */
1678#ifndef TRANSLATE
1679# define TRANSLATE(d) \
1680 (RE_TRANSLATE_P (translate) ? RE_TRANSLATE (translate, (d)) : (d))
1681#endif
1682
1683
1684/* Macros for outputting the compiled pattern into `buffer'. */
1685
1686/* If the buffer isn't allocated when it comes in, use this. */
1687#define INIT_BUF_SIZE 32
1688
1689/* Make sure we have at least N more bytes of space in buffer. */
1690#define GET_BUFFER_SPACE(n) \
1691 while ((size_t) (b - bufp->buffer + (n)) > bufp->allocated) \
1692 EXTEND_BUFFER ()
1693
1694/* Make sure we have one more byte of buffer space and then add C to it. */
1695#define BUF_PUSH(c) \
1696 do { \
1697 GET_BUFFER_SPACE (1); \
1698 *b++ = (unsigned char) (c); \
1699 } while (0)
1700
1701
1702/* Ensure we have two more bytes of buffer space and then append C1 and C2. */
1703#define BUF_PUSH_2(c1, c2) \
1704 do { \
1705 GET_BUFFER_SPACE (2); \
1706 *b++ = (unsigned char) (c1); \
1707 *b++ = (unsigned char) (c2); \
1708 } while (0)
1709
1710
1711/* As with BUF_PUSH_2, except for three bytes. */
1712#define BUF_PUSH_3(c1, c2, c3) \
1713 do { \
1714 GET_BUFFER_SPACE (3); \
1715 *b++ = (unsigned char) (c1); \
1716 *b++ = (unsigned char) (c2); \
1717 *b++ = (unsigned char) (c3); \
1718 } while (0)
1719
1720
1721/* Store a jump with opcode OP at LOC to location TO. We store a
1722 relative address offset by the three bytes the jump itself occupies. */
1723#define STORE_JUMP(op, loc, to) \
1724 store_op1 (op, loc, (to) - (loc) - 3)
1725
1726/* Likewise, for a two-argument jump. */
1727#define STORE_JUMP2(op, loc, to, arg) \
1728 store_op2 (op, loc, (to) - (loc) - 3, arg)
1729
1730/* Like `STORE_JUMP', but for inserting. Assume `b' is the buffer end. */
1731#define INSERT_JUMP(op, loc, to) \
1732 insert_op1 (op, loc, (to) - (loc) - 3, b)
1733
1734/* Like `STORE_JUMP2', but for inserting. Assume `b' is the buffer end. */
1735#define INSERT_JUMP2(op, loc, to, arg) \
1736 insert_op2 (op, loc, (to) - (loc) - 3, arg, b)
1737
1738
1739/* This is not an arbitrary limit: the arguments which represent offsets
1740 into the pattern are two bytes long. So if 2^15 bytes turns out to
1741 be too small, many things would have to change. */
1742# define MAX_BUF_SIZE (1L << 15)
1743
1744#if 0 /* This is when we thought it could be 2^16 bytes. */
1745/* Any other compiler which, like MSC, has allocation limit below 2^16
1746 bytes will have to use approach similar to what was done below for
1747 MSC and drop MAX_BUF_SIZE a bit. Otherwise you may end up
1748 reallocating to 0 bytes. Such thing is not going to work too well.
1749 You have been warned!! */
1750#if defined _MSC_VER && !defined WIN32
1751/* Microsoft C 16-bit versions limit malloc to approx 65512 bytes. */
1752# define MAX_BUF_SIZE 65500L
1753#else
1754# define MAX_BUF_SIZE (1L << 16)
1755#endif
1756#endif /* 0 */
1757
1758/* Extend the buffer by twice its current size via realloc and
1759 reset the pointers that pointed into the old block to point to the
1760 correct places in the new one. If extending the buffer results in it
1761 being larger than MAX_BUF_SIZE, then flag memory exhausted. */
1762#if __BOUNDED_POINTERS__
1763# define SET_HIGH_BOUND(P) (__ptrhigh (P) = __ptrlow (P) + bufp->allocated)
1764# define MOVE_BUFFER_POINTER(P) \
1765 (__ptrlow (P) += incr, SET_HIGH_BOUND (P), __ptrvalue (P) += incr)
1766# define ELSE_EXTEND_BUFFER_HIGH_BOUND \
1767 else \
1768 { \
1769 SET_HIGH_BOUND (b); \
1770 SET_HIGH_BOUND (begalt); \
1771 if (fixup_alt_jump) \
1772 SET_HIGH_BOUND (fixup_alt_jump); \
1773 if (laststart) \
1774 SET_HIGH_BOUND (laststart); \
1775 if (pending_exact) \
1776 SET_HIGH_BOUND (pending_exact); \
1777 }
1778#else
1779# define MOVE_BUFFER_POINTER(P) (P) += incr
1780# define ELSE_EXTEND_BUFFER_HIGH_BOUND
1781#endif
1782#define EXTEND_BUFFER() \
1783 do { \
1784 re_char *old_buffer = bufp->buffer; \
1785 if (bufp->allocated == MAX_BUF_SIZE) \
1786 return REG_ESIZE; \
1787 bufp->allocated <<= 1; \
1788 if (bufp->allocated > MAX_BUF_SIZE) \
1789 bufp->allocated = MAX_BUF_SIZE; \
1790 RETALLOC (bufp->buffer, bufp->allocated, unsigned char); \
1791 if (bufp->buffer == NULL) \
1792 return REG_ESPACE; \
1793 /* If the buffer moved, move all the pointers into it. */ \
1794 if (old_buffer != bufp->buffer) \
1795 { \
1796 int incr = bufp->buffer - old_buffer; \
1797 MOVE_BUFFER_POINTER (b); \
1798 MOVE_BUFFER_POINTER (begalt); \
1799 if (fixup_alt_jump) \
1800 MOVE_BUFFER_POINTER (fixup_alt_jump); \
1801 if (laststart) \
1802 MOVE_BUFFER_POINTER (laststart); \
1803 if (pending_exact) \
1804 MOVE_BUFFER_POINTER (pending_exact); \
1805 } \
1806 ELSE_EXTEND_BUFFER_HIGH_BOUND \
1807 } while (0)
1808
1809
1810/* Since we have one byte reserved for the register number argument to
1811 {start,stop}_memory, the maximum number of groups we can report
1812 things about is what fits in that byte. */
1813#define MAX_REGNUM 255
1814
1815/* But patterns can have more than `MAX_REGNUM' registers. We just
1816 ignore the excess. */
1817typedef int regnum_t;
1818
1819
1820/* Macros for the compile stack. */
1821
1822/* Since offsets can go either forwards or backwards, this type needs to
1823 be able to hold values from -(MAX_BUF_SIZE - 1) to MAX_BUF_SIZE - 1. */
1824/* int may be not enough when sizeof(int) == 2. */
1825typedef long pattern_offset_t;
1826
1827typedef struct
1828{
1829 pattern_offset_t begalt_offset;
1830 pattern_offset_t fixup_alt_jump;
1831 pattern_offset_t laststart_offset;
1832 regnum_t regnum;
1833} compile_stack_elt_t;
1834
1835
1836typedef struct
1837{
1838 compile_stack_elt_t *stack;
1839 unsigned size;
1840 unsigned avail; /* Offset of next open position. */
1841} compile_stack_type;
1842
1843
1844#define INIT_COMPILE_STACK_SIZE 32
1845
1846#define COMPILE_STACK_EMPTY (compile_stack.avail == 0)
1847#define COMPILE_STACK_FULL (compile_stack.avail == compile_stack.size)
1848
1849/* The next available element. */
1850#define COMPILE_STACK_TOP (compile_stack.stack[compile_stack.avail])
1851
1852/* Explicit quit checking is only used on NTemacs. */
1853#if defined WINDOWSNT && defined emacs && defined QUIT
1854extern int immediate_quit;
1855# define IMMEDIATE_QUIT_CHECK \
1856 do { \
1857 if (immediate_quit) QUIT; \
1858 } while (0)
1859#else
1860# define IMMEDIATE_QUIT_CHECK ((void)0)
1861#endif
1862
1863/* Structure to manage work area for range table. */
1864struct range_table_work_area
1865{
1866 int *table; /* actual work area. */
1867 int allocated; /* allocated size for work area in bytes. */
1868 int used; /* actually used size in words. */
1869 int bits; /* flag to record character classes */
1870};
1871
1872/* Make sure that WORK_AREA can hold more N multibyte characters.
1873 This is used only in set_image_of_range and set_image_of_range_1.
1874 It expects WORK_AREA to be a pointer.
1875 If it can't get the space, it returns from the surrounding function. */
1876
1877#define EXTEND_RANGE_TABLE(work_area, n) \
1878 do { \
1879 if (((work_area)->used + (n)) * sizeof (int) > (work_area)->allocated) \
1880 { \
1881 extend_range_table_work_area (work_area); \
1882 if ((work_area)->table == 0) \
1883 return (REG_ESPACE); \
1884 } \
1885 } while (0)
1886
1887#define SET_RANGE_TABLE_WORK_AREA_BIT(work_area, bit) \
1888 (work_area).bits |= (bit)
1889
1890/* Bits used to implement the multibyte-part of the various character classes
1891 such as [:alnum:] in a charset's range table. */
1892#define BIT_WORD 0x1
1893#define BIT_LOWER 0x2
1894#define BIT_PUNCT 0x4
1895#define BIT_SPACE 0x8
1896#define BIT_UPPER 0x10
1897#define BIT_MULTIBYTE 0x20
1898
1899/* Set a range START..END to WORK_AREA.
1900 The range is passed through TRANSLATE, so START and END
1901 should be untranslated. */
1902#define SET_RANGE_TABLE_WORK_AREA(work_area, start, end) \
1903 do { \
1904 int tem; \
1905 tem = set_image_of_range (&work_area, start, end, translate); \
1906 if (tem > 0) \
1907 FREE_STACK_RETURN (tem); \
1908 } while (0)
1909
1910/* Free allocated memory for WORK_AREA. */
1911#define FREE_RANGE_TABLE_WORK_AREA(work_area) \
1912 do { \
1913 if ((work_area).table) \
1914 free ((work_area).table); \
1915 } while (0)
1916
1917#define CLEAR_RANGE_TABLE_WORK_USED(work_area) ((work_area).used = 0, (work_area).bits = 0)
1918#define RANGE_TABLE_WORK_USED(work_area) ((work_area).used)
1919#define RANGE_TABLE_WORK_BITS(work_area) ((work_area).bits)
1920#define RANGE_TABLE_WORK_ELT(work_area, i) ((work_area).table[i])
1921
1922
1923/* Set the bit for character C in a list. */
1924#define SET_LIST_BIT(c) (b[((c)) / BYTEWIDTH] |= 1 << ((c) % BYTEWIDTH))
1925
1926
1927/* Get the next unsigned number in the uncompiled pattern. */
1928#define GET_UNSIGNED_NUMBER(num) \
1929 do { if (p != pend) \
1930 { \
1931 PATFETCH (c); \
1932 if (c == ' ') \
1933 FREE_STACK_RETURN (REG_BADBR); \
1934 while ('0' <= c && c <= '9') \
1935 { \
1936 int prev; \
1937 if (num < 0) \
1938 num = 0; \
1939 prev = num; \
1940 num = num * 10 + c - '0'; \
1941 if (num / 10 != prev) \
1942 FREE_STACK_RETURN (REG_BADBR); \
1943 if (p == pend) \
1944 break; \
1945 PATFETCH (c); \
1946 } \
1947 if (c == ' ') \
1948 FREE_STACK_RETURN (REG_BADBR); \
1949 } \
1950 } while (0)
1951
1952#if WIDE_CHAR_SUPPORT
1953/* The GNU C library provides support for user-defined character classes
1954 and the functions from ISO C amendement 1. */
1955# ifdef CHARCLASS_NAME_MAX
1956# define CHAR_CLASS_MAX_LENGTH CHARCLASS_NAME_MAX
1957# else
1958/* This shouldn't happen but some implementation might still have this
1959 problem. Use a reasonable default value. */
1960# define CHAR_CLASS_MAX_LENGTH 256
1961# endif
1962typedef wctype_t re_wctype_t;
1963typedef wchar_t re_wchar_t;
1964# define re_wctype wctype
1965# define re_iswctype iswctype
1966# define re_wctype_to_bit(cc) 0
1967#else
1968# define CHAR_CLASS_MAX_LENGTH 9 /* Namely, `multibyte'. */
1969# define btowc(c) c
1970
1971/* Character classes. */
1972typedef enum { RECC_ERROR = 0,
1973 RECC_ALNUM, RECC_ALPHA, RECC_WORD,
1974 RECC_GRAPH, RECC_PRINT,
1975 RECC_LOWER, RECC_UPPER,
1976 RECC_PUNCT, RECC_CNTRL,
1977 RECC_DIGIT, RECC_XDIGIT,
1978 RECC_BLANK, RECC_SPACE,
1979 RECC_MULTIBYTE, RECC_NONASCII,
1980 RECC_ASCII, RECC_UNIBYTE
1981} re_wctype_t;
1982
1983typedef int re_wchar_t;
1984
1985/* Map a string to the char class it names (if any). */
1986static re_wctype_t
1987re_wctype (str)
1988 re_char *str;
1989{
1990 const char *string = str;
1991 if (STREQ (string, "alnum")) return RECC_ALNUM;
1992 else if (STREQ (string, "alpha")) return RECC_ALPHA;
1993 else if (STREQ (string, "word")) return RECC_WORD;
1994 else if (STREQ (string, "ascii")) return RECC_ASCII;
1995 else if (STREQ (string, "nonascii")) return RECC_NONASCII;
1996 else if (STREQ (string, "graph")) return RECC_GRAPH;
1997 else if (STREQ (string, "lower")) return RECC_LOWER;
1998 else if (STREQ (string, "print")) return RECC_PRINT;
1999 else if (STREQ (string, "punct")) return RECC_PUNCT;
2000 else if (STREQ (string, "space")) return RECC_SPACE;
2001 else if (STREQ (string, "upper")) return RECC_UPPER;
2002 else if (STREQ (string, "unibyte")) return RECC_UNIBYTE;
2003 else if (STREQ (string, "multibyte")) return RECC_MULTIBYTE;
2004 else if (STREQ (string, "digit")) return RECC_DIGIT;
2005 else if (STREQ (string, "xdigit")) return RECC_XDIGIT;
2006 else if (STREQ (string, "cntrl")) return RECC_CNTRL;
2007 else if (STREQ (string, "blank")) return RECC_BLANK;
2008 else return 0;
2009}
2010
2011/* True iff CH is in the char class CC. */
2012static boolean
2013re_iswctype (ch, cc)
2014 int ch;
2015 re_wctype_t cc;
2016{
2017 switch (cc)
2018 {
2019 case RECC_ALNUM: return ISALNUM (ch);
2020 case RECC_ALPHA: return ISALPHA (ch);
2021 case RECC_BLANK: return ISBLANK (ch);
2022 case RECC_CNTRL: return ISCNTRL (ch);
2023 case RECC_DIGIT: return ISDIGIT (ch);
2024 case RECC_GRAPH: return ISGRAPH (ch);
2025 case RECC_LOWER: return ISLOWER (ch);
2026 case RECC_PRINT: return ISPRINT (ch);
2027 case RECC_PUNCT: return ISPUNCT (ch);
2028 case RECC_SPACE: return ISSPACE (ch);
2029 case RECC_UPPER: return ISUPPER (ch);
2030 case RECC_XDIGIT: return ISXDIGIT (ch);
2031 case RECC_ASCII: return IS_REAL_ASCII (ch);
2032 case RECC_NONASCII: return !IS_REAL_ASCII (ch);
2033 case RECC_UNIBYTE: return ISUNIBYTE (ch);
2034 case RECC_MULTIBYTE: return !ISUNIBYTE (ch);
2035 case RECC_WORD: return ISWORD (ch);
2036 case RECC_ERROR: return false;
2037 default:
2038 abort();
2039 }
2040}
2041
2042/* Return a bit-pattern to use in the range-table bits to match multibyte
2043 chars of class CC. */
2044static int
2045re_wctype_to_bit (cc)
2046 re_wctype_t cc;
2047{
2048 switch (cc)
2049 {
2050 case RECC_NONASCII: case RECC_PRINT: case RECC_GRAPH:
2051 case RECC_MULTIBYTE: return BIT_MULTIBYTE;
2052 case RECC_ALPHA: case RECC_ALNUM: case RECC_WORD: return BIT_WORD;
2053 case RECC_LOWER: return BIT_LOWER;
2054 case RECC_UPPER: return BIT_UPPER;
2055 case RECC_PUNCT: return BIT_PUNCT;
2056 case RECC_SPACE: return BIT_SPACE;
2057 case RECC_ASCII: case RECC_DIGIT: case RECC_XDIGIT: case RECC_CNTRL:
2058 case RECC_BLANK: case RECC_UNIBYTE: case RECC_ERROR: return 0;
2059 default:
2060 abort();
2061 }
2062}
2063#endif
2064
2065/* Filling in the work area of a range. */
2066
2067/* Actually extend the space in WORK_AREA. */
2068
2069static void
2070extend_range_table_work_area (work_area)
2071 struct range_table_work_area *work_area;
2072{
2073 work_area->allocated += 16 * sizeof (int);
2074 if (work_area->table)
2075 work_area->table
2076 = (int *) realloc (work_area->table, work_area->allocated);
2077 else
2078 work_area->table
2079 = (int *) malloc (work_area->allocated);
2080}
2081
2082#ifdef emacs
2083
2084/* Carefully find the ranges of codes that are equivalent
2085 under case conversion to the range start..end when passed through
2086 TRANSLATE. Handle the case where non-letters can come in between
2087 two upper-case letters (which happens in Latin-1).
2088 Also handle the case of groups of more than 2 case-equivalent chars.
2089
2090 The basic method is to look at consecutive characters and see
2091 if they can form a run that can be handled as one.
2092
2093 Returns -1 if successful, REG_ESPACE if ran out of space. */
2094
2095static int
2096set_image_of_range_1 (work_area, start, end, translate)
2097 RE_TRANSLATE_TYPE translate;
2098 struct range_table_work_area *work_area;
2099 re_wchar_t start, end;
2100{
2101 /* `one_case' indicates a character, or a run of characters,
2102 each of which is an isolate (no case-equivalents).
2103 This includes all ASCII non-letters.
2104
2105 `two_case' indicates a character, or a run of characters,
2106 each of which has two case-equivalent forms.
2107 This includes all ASCII letters.
2108
2109 `strange' indicates a character that has more than one
2110 case-equivalent. */
2111
2112 enum case_type {one_case, two_case, strange};
2113
2114 /* Describe the run that is in progress,
2115 which the next character can try to extend.
2116 If run_type is strange, that means there really is no run.
2117 If run_type is one_case, then run_start...run_end is the run.
2118 If run_type is two_case, then the run is run_start...run_end,
2119 and the case-equivalents end at run_eqv_end. */
2120
2121 enum case_type run_type = strange;
2122 int run_start, run_end, run_eqv_end;
2123
2124 Lisp_Object eqv_table;
2125
2126 if (!RE_TRANSLATE_P (translate))
2127 {
2128 EXTEND_RANGE_TABLE (work_area, 2);
2129 work_area->table[work_area->used++] = (start);
2130 work_area->table[work_area->used++] = (end);
2131 return -1;
2132 }
2133
2134 eqv_table = XCHAR_TABLE (translate)->extras[2];
2135
2136 for (; start <= end; start++)
2137 {
2138 enum case_type this_type;
2139 int eqv = RE_TRANSLATE (eqv_table, start);
2140 int minchar, maxchar;
2141
2142 /* Classify this character */
2143 if (eqv == start)
2144 this_type = one_case;
2145 else if (RE_TRANSLATE (eqv_table, eqv) == start)
2146 this_type = two_case;
2147 else
2148 this_type = strange;
2149
2150 if (start < eqv)
2151 minchar = start, maxchar = eqv;
2152 else
2153 minchar = eqv, maxchar = start;
2154
2155 /* Can this character extend the run in progress? */
2156 if (this_type == strange || this_type != run_type
2157 || !(minchar == run_end + 1
2158 && (run_type == two_case
2159 ? maxchar == run_eqv_end + 1 : 1)))
2160 {
2161 /* No, end the run.
2162 Record each of its equivalent ranges. */
2163 if (run_type == one_case)
2164 {
2165 EXTEND_RANGE_TABLE (work_area, 2);
2166 work_area->table[work_area->used++] = run_start;
2167 work_area->table[work_area->used++] = run_end;
2168 }
2169 else if (run_type == two_case)
2170 {
2171 EXTEND_RANGE_TABLE (work_area, 4);
2172 work_area->table[work_area->used++] = run_start;
2173 work_area->table[work_area->used++] = run_end;
2174 work_area->table[work_area->used++]
2175 = RE_TRANSLATE (eqv_table, run_start);
2176 work_area->table[work_area->used++]
2177 = RE_TRANSLATE (eqv_table, run_end);
2178 }
2179 run_type = strange;
2180 }
2181
2182 if (this_type == strange)
2183 {
2184 /* For a strange character, add each of its equivalents, one
2185 by one. Don't start a range. */
2186 do
2187 {
2188 EXTEND_RANGE_TABLE (work_area, 2);
2189 work_area->table[work_area->used++] = eqv;
2190 work_area->table[work_area->used++] = eqv;
2191 eqv = RE_TRANSLATE (eqv_table, eqv);
2192 }
2193 while (eqv != start);
2194 }
2195
2196 /* Add this char to the run, or start a new run. */
2197 else if (run_type == strange)
2198 {
2199 /* Initialize a new range. */
2200 run_type = this_type;
2201 run_start = start;
2202 run_end = start;
2203 run_eqv_end = RE_TRANSLATE (eqv_table, run_end);
2204 }
2205 else
2206 {
2207 /* Extend a running range. */
2208 run_end = minchar;
2209 run_eqv_end = RE_TRANSLATE (eqv_table, run_end);
2210 }
2211 }
2212
2213 /* If a run is still in progress at the end, finish it now
2214 by recording its equivalent ranges. */
2215 if (run_type == one_case)
2216 {
2217 EXTEND_RANGE_TABLE (work_area, 2);
2218 work_area->table[work_area->used++] = run_start;
2219 work_area->table[work_area->used++] = run_end;
2220 }
2221 else if (run_type == two_case)
2222 {
2223 EXTEND_RANGE_TABLE (work_area, 4);
2224 work_area->table[work_area->used++] = run_start;
2225 work_area->table[work_area->used++] = run_end;
2226 work_area->table[work_area->used++]
2227 = RE_TRANSLATE (eqv_table, run_start);
2228 work_area->table[work_area->used++]
2229 = RE_TRANSLATE (eqv_table, run_end);
2230 }
2231
2232 return -1;
2233}
2234
2235#endif /* emacs */
2236
2237/* Record the the image of the range start..end when passed through
2238 TRANSLATE. This is not necessarily TRANSLATE(start)..TRANSLATE(end)
2239 and is not even necessarily contiguous.
2240 Normally we approximate it with the smallest contiguous range that contains
2241 all the chars we need. However, for Latin-1 we go to extra effort
2242 to do a better job.
2243
2244 This function is not called for ASCII ranges.
2245
2246 Returns -1 if successful, REG_ESPACE if ran out of space. */
2247
2248static int
2249set_image_of_range (work_area, start, end, translate)
2250 RE_TRANSLATE_TYPE translate;
2251 struct range_table_work_area *work_area;
2252 re_wchar_t start, end;
2253{
2254 re_wchar_t cmin, cmax;
2255
2256#ifdef emacs
2257 /* For Latin-1 ranges, use set_image_of_range_1
2258 to get proper handling of ranges that include letters and nonletters.
2259 For a range that includes the whole of Latin-1, this is not necessary.
2260 For other character sets, we don't bother to get this right. */
2261 if (RE_TRANSLATE_P (translate) && start < 04400
2262 && !(start < 04200 && end >= 04377))
2263 {
2264 int newend;
2265 int tem;
2266 newend = end;
2267 if (newend > 04377)
2268 newend = 04377;
2269 tem = set_image_of_range_1 (work_area, start, newend, translate);
2270 if (tem > 0)
2271 return tem;
2272
2273 start = 04400;
2274 if (end < 04400)
2275 return -1;
2276 }
2277#endif
2278
2279 EXTEND_RANGE_TABLE (work_area, 2);
2280 work_area->table[work_area->used++] = (start);
2281 work_area->table[work_area->used++] = (end);
2282
2283 cmin = -1, cmax = -1;
2284
2285 if (RE_TRANSLATE_P (translate))
2286 {
2287 int ch;
2288
2289 for (ch = start; ch <= end; ch++)
2290 {
2291 re_wchar_t c = TRANSLATE (ch);
2292 if (! (start <= c && c <= end))
2293 {
2294 if (cmin == -1)
2295 cmin = c, cmax = c;
2296 else
2297 {
2298 cmin = MIN (cmin, c);
2299 cmax = MAX (cmax, c);
2300 }
2301 }
2302 }
2303
2304 if (cmin != -1)
2305 {
2306 EXTEND_RANGE_TABLE (work_area, 2);
2307 work_area->table[work_area->used++] = (cmin);
2308 work_area->table[work_area->used++] = (cmax);
2309 }
2310 }
2311
2312 return -1;
2313}
2314
2315#ifndef MATCH_MAY_ALLOCATE
2316
2317/* If we cannot allocate large objects within re_match_2_internal,
2318 we make the fail stack and register vectors global.
2319 The fail stack, we grow to the maximum size when a regexp
2320 is compiled.
2321 The register vectors, we adjust in size each time we
2322 compile a regexp, according to the number of registers it needs. */
2323
2324static fail_stack_type fail_stack;
2325
2326/* Size with which the following vectors are currently allocated.
2327 That is so we can make them bigger as needed,
2328 but never make them smaller. */
2329static int regs_allocated_size;
2330
2331static re_char ** regstart, ** regend;
2332static re_char **best_regstart, **best_regend;
2333
2334/* Make the register vectors big enough for NUM_REGS registers,
2335 but don't make them smaller. */
2336
2337static
2338regex_grow_registers (num_regs)
2339 int num_regs;
2340{
2341 if (num_regs > regs_allocated_size)
2342 {
2343 RETALLOC_IF (regstart, num_regs, re_char *);
2344 RETALLOC_IF (regend, num_regs, re_char *);
2345 RETALLOC_IF (best_regstart, num_regs, re_char *);
2346 RETALLOC_IF (best_regend, num_regs, re_char *);
2347
2348 regs_allocated_size = num_regs;
2349 }
2350}
2351
2352#endif /* not MATCH_MAY_ALLOCATE */
2353
2354static boolean group_in_compile_stack _RE_ARGS ((compile_stack_type
2355 compile_stack,
2356 regnum_t regnum));
2357
2358/* `regex_compile' compiles PATTERN (of length SIZE) according to SYNTAX.
2359 Returns one of error codes defined in `regex.h', or zero for success.
2360
2361 Assumes the `allocated' (and perhaps `buffer') and `translate'
2362 fields are set in BUFP on entry.
2363
2364 If it succeeds, results are put in BUFP (if it returns an error, the
2365 contents of BUFP are undefined):
2366 `buffer' is the compiled pattern;
2367 `syntax' is set to SYNTAX;
2368 `used' is set to the length of the compiled pattern;
2369 `fastmap_accurate' is zero;
2370 `re_nsub' is the number of subexpressions in PATTERN;
2371 `not_bol' and `not_eol' are zero;
2372
2373 The `fastmap' field is neither examined nor set. */
2374
2375/* Insert the `jump' from the end of last alternative to "here".
2376 The space for the jump has already been allocated. */
2377#define FIXUP_ALT_JUMP() \
2378do { \
2379 if (fixup_alt_jump) \
2380 STORE_JUMP (jump, fixup_alt_jump, b); \
2381} while (0)
2382
2383
2384/* Return, freeing storage we allocated. */
2385#define FREE_STACK_RETURN(value) \
2386 do { \
2387 FREE_RANGE_TABLE_WORK_AREA (range_table_work); \
2388 free (compile_stack.stack); \
2389 return value; \
2390 } while (0)
2391
2392static reg_errcode_t
2393regex_compile (pattern, size, syntax, bufp)
2394 re_char *pattern;
2395 size_t size;
2396 reg_syntax_t syntax;
2397 struct re_pattern_buffer *bufp;
2398{
2399 /* We fetch characters from PATTERN here. */
2400 register re_wchar_t c, c1;
2401
2402 /* A random temporary spot in PATTERN. */
2403 re_char *p1;
2404
2405 /* Points to the end of the buffer, where we should append. */
2406 register unsigned char *b;
2407
2408 /* Keeps track of unclosed groups. */
2409 compile_stack_type compile_stack;
2410
2411 /* Points to the current (ending) position in the pattern. */
2412#ifdef AIX
2413 /* `const' makes AIX compiler fail. */
2414 unsigned char *p = pattern;
2415#else
2416 re_char *p = pattern;
2417#endif
2418 re_char *pend = pattern + size;
2419
2420 /* How to translate the characters in the pattern. */
2421 RE_TRANSLATE_TYPE translate = bufp->translate;
2422
2423 /* Address of the count-byte of the most recently inserted `exactn'
2424 command. This makes it possible to tell if a new exact-match
2425 character can be added to that command or if the character requires
2426 a new `exactn' command. */
2427 unsigned char *pending_exact = 0;
2428
2429 /* Address of start of the most recently finished expression.
2430 This tells, e.g., postfix * where to find the start of its
2431 operand. Reset at the beginning of groups and alternatives. */
2432 unsigned char *laststart = 0;
2433
2434 /* Address of beginning of regexp, or inside of last group. */
2435 unsigned char *begalt;
2436
2437 /* Place in the uncompiled pattern (i.e., the {) to
2438 which to go back if the interval is invalid. */
2439 re_char *beg_interval;
2440
2441 /* Address of the place where a forward jump should go to the end of
2442 the containing expression. Each alternative of an `or' -- except the
2443 last -- ends with a forward jump of this sort. */
2444 unsigned char *fixup_alt_jump = 0;
2445
2446 /* Counts open-groups as they are encountered. Remembered for the
2447 matching close-group on the compile stack, so the same register
2448 number is put in the stop_memory as the start_memory. */
2449 regnum_t regnum = 0;
2450
2451 /* Work area for range table of charset. */
2452 struct range_table_work_area range_table_work;
2453
2454 /* If the object matched can contain multibyte characters. */
2455 const boolean multibyte = RE_MULTIBYTE_P (bufp);
2456
2457#ifdef DEBUG
2458 debug++;
2459 DEBUG_PRINT1 ("\nCompiling pattern: ");
2460 if (debug > 0)
2461 {
2462 unsigned debug_count;
2463
2464 for (debug_count = 0; debug_count < size; debug_count++)
2465 putchar (pattern[debug_count]);
2466 putchar ('\n');
2467 }
2468#endif /* DEBUG */
2469
2470 /* Initialize the compile stack. */
2471 compile_stack.stack = TALLOC (INIT_COMPILE_STACK_SIZE, compile_stack_elt_t);
2472 if (compile_stack.stack == NULL)
2473 return REG_ESPACE;
2474
2475 compile_stack.size = INIT_COMPILE_STACK_SIZE;
2476 compile_stack.avail = 0;
2477
2478 range_table_work.table = 0;
2479 range_table_work.allocated = 0;
2480
2481 /* Initialize the pattern buffer. */
2482 bufp->syntax = syntax;
2483 bufp->fastmap_accurate = 0;
2484 bufp->not_bol = bufp->not_eol = 0;
2485
2486 /* Set `used' to zero, so that if we return an error, the pattern
2487 printer (for debugging) will think there's no pattern. We reset it
2488 at the end. */
2489 bufp->used = 0;
2490
2491 /* Always count groups, whether or not bufp->no_sub is set. */
2492 bufp->re_nsub = 0;
2493
2494#if !defined emacs && !defined SYNTAX_TABLE
2495 /* Initialize the syntax table. */
2496 init_syntax_once ();
2497#endif
2498
2499 if (bufp->allocated == 0)
2500 {
2501 if (bufp->buffer)
2502 { /* If zero allocated, but buffer is non-null, try to realloc
2503 enough space. This loses if buffer's address is bogus, but
2504 that is the user's responsibility. */
2505 RETALLOC (bufp->buffer, INIT_BUF_SIZE, unsigned char);
2506 }
2507 else
2508 { /* Caller did not allocate a buffer. Do it for them. */
2509 bufp->buffer = TALLOC (INIT_BUF_SIZE, unsigned char);
2510 }
2511 if (!bufp->buffer) FREE_STACK_RETURN (REG_ESPACE);
2512
2513 bufp->allocated = INIT_BUF_SIZE;
2514 }
2515
2516 begalt = b = bufp->buffer;
2517
2518 /* Loop through the uncompiled pattern until we're at the end. */
2519 while (p != pend)
2520 {
2521 PATFETCH (c);
2522
2523 switch (c)
2524 {
2525 case '^':
2526 {
2527 if ( /* If at start of pattern, it's an operator. */
2528 p == pattern + 1
2529 /* If context independent, it's an operator. */
2530 || syntax & RE_CONTEXT_INDEP_ANCHORS
2531 /* Otherwise, depends on what's come before. */
2532 || at_begline_loc_p (pattern, p, syntax))
2533 BUF_PUSH ((syntax & RE_NO_NEWLINE_ANCHOR) ? begbuf : begline);
2534 else
2535 goto normal_char;
2536 }
2537 break;
2538
2539
2540 case '$':
2541 {
2542 if ( /* If at end of pattern, it's an operator. */
2543 p == pend
2544 /* If context independent, it's an operator. */
2545 || syntax & RE_CONTEXT_INDEP_ANCHORS
2546 /* Otherwise, depends on what's next. */
2547 || at_endline_loc_p (p, pend, syntax))
2548 BUF_PUSH ((syntax & RE_NO_NEWLINE_ANCHOR) ? endbuf : endline);
2549 else
2550 goto normal_char;
2551 }
2552 break;
2553
2554
2555 case '+':
2556 case '?':
2557 if ((syntax & RE_BK_PLUS_QM)
2558 || (syntax & RE_LIMITED_OPS))
2559 goto normal_char;
2560 handle_plus:
2561 case '*':
2562 /* If there is no previous pattern... */
2563 if (!laststart)
2564 {
2565 if (syntax & RE_CONTEXT_INVALID_OPS)
2566 FREE_STACK_RETURN (REG_BADRPT);
2567 else if (!(syntax & RE_CONTEXT_INDEP_OPS))
2568 goto normal_char;
2569 }
2570
2571 {
2572 /* 1 means zero (many) matches is allowed. */
2573 boolean zero_times_ok = 0, many_times_ok = 0;
2574 boolean greedy = 1;
2575
2576 /* If there is a sequence of repetition chars, collapse it
2577 down to just one (the right one). We can't combine
2578 interval operators with these because of, e.g., `a{2}*',
2579 which should only match an even number of `a's. */
2580
2581 for (;;)
2582 {
2583 if ((syntax & RE_FRUGAL)
2584 && c == '?' && (zero_times_ok || many_times_ok))
2585 greedy = 0;
2586 else
2587 {
2588 zero_times_ok |= c != '+';
2589 many_times_ok |= c != '?';
2590 }
2591
2592 if (p == pend)
2593 break;
2594 else if (*p == '*'
2595 || (!(syntax & RE_BK_PLUS_QM)
2596 && (*p == '+' || *p == '?')))
2597 ;
2598 else if (syntax & RE_BK_PLUS_QM && *p == '\\')
2599 {
2600 if (p+1 == pend)
2601 FREE_STACK_RETURN (REG_EESCAPE);
2602 if (p[1] == '+' || p[1] == '?')
2603 PATFETCH (c); /* Gobble up the backslash. */
2604 else
2605 break;
2606 }
2607 else
2608 break;
2609 /* If we get here, we found another repeat character. */
2610 PATFETCH (c);
2611 }
2612
2613 /* Star, etc. applied to an empty pattern is equivalent
2614 to an empty pattern. */
2615 if (!laststart || laststart == b)
2616 break;
2617
2618 /* Now we know whether or not zero matches is allowed
2619 and also whether or not two or more matches is allowed. */
2620 if (greedy)
2621 {
2622 if (many_times_ok)
2623 {
2624 boolean simple = skip_one_char (laststart) == b;
2625 unsigned int startoffset = 0;
2626 re_opcode_t ofj =
2627 /* Check if the loop can match the empty string. */
2628 (simple || !analyse_first (laststart, b, NULL, 0))
2629 ? on_failure_jump : on_failure_jump_loop;
2630 assert (skip_one_char (laststart) <= b);
2631
2632 if (!zero_times_ok && simple)
2633 { /* Since simple * loops can be made faster by using
2634 on_failure_keep_string_jump, we turn simple P+
2635 into PP* if P is simple. */
2636 unsigned char *p1, *p2;
2637 startoffset = b - laststart;
2638 GET_BUFFER_SPACE (startoffset);
2639 p1 = b; p2 = laststart;
2640 while (p2 < p1)
2641 *b++ = *p2++;
2642 zero_times_ok = 1;
2643 }
2644
2645 GET_BUFFER_SPACE (6);
2646 if (!zero_times_ok)
2647 /* A + loop. */
2648 STORE_JUMP (ofj, b, b + 6);
2649 else
2650 /* Simple * loops can use on_failure_keep_string_jump
2651 depending on what follows. But since we don't know
2652 that yet, we leave the decision up to
2653 on_failure_jump_smart. */
2654 INSERT_JUMP (simple ? on_failure_jump_smart : ofj,
2655 laststart + startoffset, b + 6);
2656 b += 3;
2657 STORE_JUMP (jump, b, laststart + startoffset);
2658 b += 3;
2659 }
2660 else
2661 {
2662 /* A simple ? pattern. */
2663 assert (zero_times_ok);
2664 GET_BUFFER_SPACE (3);
2665 INSERT_JUMP (on_failure_jump, laststart, b + 3);
2666 b += 3;
2667 }
2668 }
2669 else /* not greedy */
2670 { /* I wish the greedy and non-greedy cases could be merged. */
2671
2672 GET_BUFFER_SPACE (7); /* We might use less. */
2673 if (many_times_ok)
2674 {
2675 boolean emptyp = analyse_first (laststart, b, NULL, 0);
2676
2677 /* The non-greedy multiple match looks like
2678 a repeat..until: we only need a conditional jump
2679 at the end of the loop. */
2680 if (emptyp) BUF_PUSH (no_op);
2681 STORE_JUMP (emptyp ? on_failure_jump_nastyloop
2682 : on_failure_jump, b, laststart);
2683 b += 3;
2684 if (zero_times_ok)
2685 {
2686 /* The repeat...until naturally matches one or more.
2687 To also match zero times, we need to first jump to
2688 the end of the loop (its conditional jump). */
2689 INSERT_JUMP (jump, laststart, b);
2690 b += 3;
2691 }
2692 }
2693 else
2694 {
2695 /* non-greedy a?? */
2696 INSERT_JUMP (jump, laststart, b + 3);
2697 b += 3;
2698 INSERT_JUMP (on_failure_jump, laststart, laststart + 6);
2699 b += 3;
2700 }
2701 }
2702 }
2703 pending_exact = 0;
2704 break;
2705
2706
2707 case '.':
2708 laststart = b;
2709 BUF_PUSH (anychar);
2710 break;
2711
2712
2713 case '[':
2714 {
2715 CLEAR_RANGE_TABLE_WORK_USED (range_table_work);
2716
2717 if (p == pend) FREE_STACK_RETURN (REG_EBRACK);
2718
2719 /* Ensure that we have enough space to push a charset: the
2720 opcode, the length count, and the bitset; 34 bytes in all. */
2721 GET_BUFFER_SPACE (34);
2722
2723 laststart = b;
2724
2725 /* We test `*p == '^' twice, instead of using an if
2726 statement, so we only need one BUF_PUSH. */
2727 BUF_PUSH (*p == '^' ? charset_not : charset);
2728 if (*p == '^')
2729 p++;
2730
2731 /* Remember the first position in the bracket expression. */
2732 p1 = p;
2733
2734 /* Push the number of bytes in the bitmap. */
2735 BUF_PUSH ((1 << BYTEWIDTH) / BYTEWIDTH);
2736
2737 /* Clear the whole map. */
2738 bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
2739
2740 /* charset_not matches newline according to a syntax bit. */
2741 if ((re_opcode_t) b[-2] == charset_not
2742 && (syntax & RE_HAT_LISTS_NOT_NEWLINE))
2743 SET_LIST_BIT ('\n');
2744
2745 /* Read in characters and ranges, setting map bits. */
2746 for (;;)
2747 {
2748 boolean escaped_char = false;
2749 const unsigned char *p2 = p;
2750
2751 if (p == pend) FREE_STACK_RETURN (REG_EBRACK);
2752
2753 /* Don't translate yet. The range TRANSLATE(X..Y) cannot
2754 always be determined from TRANSLATE(X) and TRANSLATE(Y)
2755 So the translation is done later in a loop. Example:
2756 (let ((case-fold-search t)) (string-match "[A-_]" "A")) */
2757 PATFETCH (c);
2758
2759 /* \ might escape characters inside [...] and [^...]. */
2760 if ((syntax & RE_BACKSLASH_ESCAPE_IN_LISTS) && c == '\\')
2761 {
2762 if (p == pend) FREE_STACK_RETURN (REG_EESCAPE);
2763
2764 PATFETCH (c);
2765 escaped_char = true;
2766 }
2767 else
2768 {
2769 /* Could be the end of the bracket expression. If it's
2770 not (i.e., when the bracket expression is `[]' so
2771 far), the ']' character bit gets set way below. */
2772 if (c == ']' && p2 != p1)
2773 break;
2774 }
2775
2776 /* What should we do for the character which is
2777 greater than 0x7F, but not BASE_LEADING_CODE_P?
2778 XXX */
2779
2780 /* See if we're at the beginning of a possible character
2781 class. */
2782
2783 if (!escaped_char &&
2784 syntax & RE_CHAR_CLASSES && c == '[' && *p == ':')
2785 {
2786 /* Leave room for the null. */
2787 unsigned char str[CHAR_CLASS_MAX_LENGTH + 1];
2788 const unsigned char *class_beg;
2789
2790 PATFETCH (c);
2791 c1 = 0;
2792 class_beg = p;
2793
2794 /* If pattern is `[[:'. */
2795 if (p == pend) FREE_STACK_RETURN (REG_EBRACK);
2796
2797 for (;;)
2798 {
2799 PATFETCH (c);
2800 if ((c == ':' && *p == ']') || p == pend)
2801 break;
2802 if (c1 < CHAR_CLASS_MAX_LENGTH)
2803 str[c1++] = c;
2804 else
2805 /* This is in any case an invalid class name. */
2806 str[0] = '\0';
2807 }
2808 str[c1] = '\0';
2809
2810 /* If isn't a word bracketed by `[:' and `:]':
2811 undo the ending character, the letters, and
2812 leave the leading `:' and `[' (but set bits for
2813 them). */
2814 if (c == ':' && *p == ']')
2815 {
2816 re_wchar_t ch;
2817 re_wctype_t cc;
2818
2819 cc = re_wctype (str);
2820
2821 if (cc == 0)
2822 FREE_STACK_RETURN (REG_ECTYPE);
2823
2824 /* Throw away the ] at the end of the character
2825 class. */
2826 PATFETCH (c);
2827
2828 if (p == pend) FREE_STACK_RETURN (REG_EBRACK);
2829
2830 /* Most character classes in a multibyte match
2831 just set a flag. Exceptions are is_blank,
2832 is_digit, is_cntrl, and is_xdigit, since
2833 they can only match ASCII characters. We
2834 don't need to handle them for multibyte.
2835 They are distinguished by a negative wctype. */
2836
2837 if (multibyte)
2838 SET_RANGE_TABLE_WORK_AREA_BIT (range_table_work,
2839 re_wctype_to_bit (cc));
2840
2841 for (ch = 0; ch < 1 << BYTEWIDTH; ++ch)
2842 {
2843 int translated = TRANSLATE (ch);
2844 if (re_iswctype (btowc (ch), cc))
2845 SET_LIST_BIT (translated);
2846 }
2847
2848 /* Repeat the loop. */
2849 continue;
2850 }
2851 else
2852 {
2853 /* Go back to right after the "[:". */
2854 p = class_beg;
2855 SET_LIST_BIT ('[');
2856
2857 /* Because the `:' may starts the range, we
2858 can't simply set bit and repeat the loop.
2859 Instead, just set it to C and handle below. */
2860 c = ':';
2861 }
2862 }
2863
2864 if (p < pend && p[0] == '-' && p[1] != ']')
2865 {
2866
2867 /* Discard the `-'. */
2868 PATFETCH (c1);
2869
2870 /* Fetch the character which ends the range. */
2871 PATFETCH (c1);
2872
2873 if (SINGLE_BYTE_CHAR_P (c))
2874 {
2875 if (! SINGLE_BYTE_CHAR_P (c1))
2876 {
2877 /* Handle a range starting with a
2878 character of less than 256, and ending
2879 with a character of not less than 256.
2880 Split that into two ranges, the low one
2881 ending at 0377, and the high one
2882 starting at the smallest character in
2883 the charset of C1 and ending at C1. */
2884 int charset = CHAR_CHARSET (c1);
2885 re_wchar_t c2 = MAKE_CHAR (charset, 0, 0);
2886
2887 SET_RANGE_TABLE_WORK_AREA (range_table_work,
2888 c2, c1);
2889 c1 = 0377;
2890 }
2891 }
2892 else if (!SAME_CHARSET_P (c, c1))
2893 FREE_STACK_RETURN (REG_ERANGE);
2894 }
2895 else
2896 /* Range from C to C. */
2897 c1 = c;
2898
2899 /* Set the range ... */
2900 if (SINGLE_BYTE_CHAR_P (c))
2901 /* ... into bitmap. */
2902 {
2903 re_wchar_t this_char;
2904 re_wchar_t range_start = c, range_end = c1;
2905
2906 /* If the start is after the end, the range is empty. */
2907 if (range_start > range_end)
2908 {
2909 if (syntax & RE_NO_EMPTY_RANGES)
2910 FREE_STACK_RETURN (REG_ERANGE);
2911 /* Else, repeat the loop. */
2912 }
2913 else
2914 {
2915 for (this_char = range_start; this_char <= range_end;
2916 this_char++)
2917 SET_LIST_BIT (TRANSLATE (this_char));
2918 }
2919 }
2920 else
2921 /* ... into range table. */
2922 SET_RANGE_TABLE_WORK_AREA (range_table_work, c, c1);
2923 }
2924
2925 /* Discard any (non)matching list bytes that are all 0 at the
2926 end of the map. Decrease the map-length byte too. */
2927 while ((int) b[-1] > 0 && b[b[-1] - 1] == 0)
2928 b[-1]--;
2929 b += b[-1];
2930
2931 /* Build real range table from work area. */
2932 if (RANGE_TABLE_WORK_USED (range_table_work)
2933 || RANGE_TABLE_WORK_BITS (range_table_work))
2934 {
2935 int i;
2936 int used = RANGE_TABLE_WORK_USED (range_table_work);
2937
2938 /* Allocate space for COUNT + RANGE_TABLE. Needs two
2939 bytes for flags, two for COUNT, and three bytes for
2940 each character. */
2941 GET_BUFFER_SPACE (4 + used * 3);
2942
2943 /* Indicate the existence of range table. */
2944 laststart[1] |= 0x80;
2945
2946 /* Store the character class flag bits into the range table.
2947 If not in emacs, these flag bits are always 0. */
2948 *b++ = RANGE_TABLE_WORK_BITS (range_table_work) & 0xff;
2949 *b++ = RANGE_TABLE_WORK_BITS (range_table_work) >> 8;
2950
2951 STORE_NUMBER_AND_INCR (b, used / 2);
2952 for (i = 0; i < used; i++)
2953 STORE_CHARACTER_AND_INCR
2954 (b, RANGE_TABLE_WORK_ELT (range_table_work, i));
2955 }
2956 }
2957 break;
2958
2959
2960 case '(':
2961 if (syntax & RE_NO_BK_PARENS)
2962 goto handle_open;
2963 else
2964 goto normal_char;
2965
2966
2967 case ')':
2968 if (syntax & RE_NO_BK_PARENS)
2969 goto handle_close;
2970 else
2971 goto normal_char;
2972
2973
2974 case '\n':
2975 if (syntax & RE_NEWLINE_ALT)
2976 goto handle_alt;
2977 else
2978 goto normal_char;
2979
2980
2981 case '|':
2982 if (syntax & RE_NO_BK_VBAR)
2983 goto handle_alt;
2984 else
2985 goto normal_char;
2986
2987
2988 case '{':
2989 if (syntax & RE_INTERVALS && syntax & RE_NO_BK_BRACES)
2990 goto handle_interval;
2991 else
2992 goto normal_char;
2993
2994
2995 case '\\':
2996 if (p == pend) FREE_STACK_RETURN (REG_EESCAPE);
2997
2998 /* Do not translate the character after the \, so that we can
2999 distinguish, e.g., \B from \b, even if we normally would
3000 translate, e.g., B to b. */
3001 PATFETCH (c);
3002
3003 switch (c)
3004 {
3005 case '(':
3006 if (syntax & RE_NO_BK_PARENS)
3007 goto normal_backslash;
3008
3009 handle_open:
3010 {
3011 int shy = 0;
3012 if (p+1 < pend)
3013 {
3014 /* Look for a special (?...) construct */
3015 if ((syntax & RE_SHY_GROUPS) && *p == '?')
3016 {
3017 PATFETCH (c); /* Gobble up the '?'. */
3018 PATFETCH (c);
3019 switch (c)
3020 {
3021 case ':': shy = 1; break;
3022 default:
3023 /* Only (?:...) is supported right now. */
3024 FREE_STACK_RETURN (REG_BADPAT);
3025 }
3026 }
3027 }
3028
3029 if (!shy)
3030 {
3031 bufp->re_nsub++;
3032 regnum++;
3033 }
3034
3035 if (COMPILE_STACK_FULL)
3036 {
3037 RETALLOC (compile_stack.stack, compile_stack.size << 1,
3038 compile_stack_elt_t);
3039 if (compile_stack.stack == NULL) return REG_ESPACE;
3040
3041 compile_stack.size <<= 1;
3042 }
3043
3044 /* These are the values to restore when we hit end of this
3045 group. They are all relative offsets, so that if the
3046 whole pattern moves because of realloc, they will still
3047 be valid. */
3048 COMPILE_STACK_TOP.begalt_offset = begalt - bufp->buffer;
3049 COMPILE_STACK_TOP.fixup_alt_jump
3050 = fixup_alt_jump ? fixup_alt_jump - bufp->buffer + 1 : 0;
3051 COMPILE_STACK_TOP.laststart_offset = b - bufp->buffer;
3052 COMPILE_STACK_TOP.regnum = shy ? -regnum : regnum;
3053
3054 /* Do not push a
3055 start_memory for groups beyond the last one we can
3056 represent in the compiled pattern. */
3057 if (regnum <= MAX_REGNUM && !shy)
3058 BUF_PUSH_2 (start_memory, regnum);
3059
3060 compile_stack.avail++;
3061
3062 fixup_alt_jump = 0;
3063 laststart = 0;
3064 begalt = b;
3065 /* If we've reached MAX_REGNUM groups, then this open
3066 won't actually generate any code, so we'll have to
3067 clear pending_exact explicitly. */
3068 pending_exact = 0;
3069 break;
3070 }
3071
3072 case ')':
3073 if (syntax & RE_NO_BK_PARENS) goto normal_backslash;
3074
3075 if (COMPILE_STACK_EMPTY)
3076 {
3077 if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
3078 goto normal_backslash;
3079 else
3080 FREE_STACK_RETURN (REG_ERPAREN);
3081 }
3082
3083 handle_close:
3084 FIXUP_ALT_JUMP ();
3085
3086 /* See similar code for backslashed left paren above. */
3087 if (COMPILE_STACK_EMPTY)
3088 {
3089 if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD)
3090 goto normal_char;
3091 else
3092 FREE_STACK_RETURN (REG_ERPAREN);
3093 }
3094
3095 /* Since we just checked for an empty stack above, this
3096 ``can't happen''. */
3097 assert (compile_stack.avail != 0);
3098 {
3099 /* We don't just want to restore into `regnum', because
3100 later groups should continue to be numbered higher,
3101 as in `(ab)c(de)' -- the second group is #2. */
3102 regnum_t this_group_regnum;
3103
3104 compile_stack.avail--;
3105 begalt = bufp->buffer + COMPILE_STACK_TOP.begalt_offset;
3106 fixup_alt_jump
3107 = COMPILE_STACK_TOP.fixup_alt_jump
3108 ? bufp->buffer + COMPILE_STACK_TOP.fixup_alt_jump - 1
3109 : 0;
3110 laststart = bufp->buffer + COMPILE_STACK_TOP.laststart_offset;
3111 this_group_regnum = COMPILE_STACK_TOP.regnum;
3112 /* If we've reached MAX_REGNUM groups, then this open
3113 won't actually generate any code, so we'll have to
3114 clear pending_exact explicitly. */
3115 pending_exact = 0;
3116
3117 /* We're at the end of the group, so now we know how many
3118 groups were inside this one. */
3119 if (this_group_regnum <= MAX_REGNUM && this_group_regnum > 0)
3120 BUF_PUSH_2 (stop_memory, this_group_regnum);
3121 }
3122 break;
3123
3124
3125 case '|': /* `\|'. */
3126 if (syntax & RE_LIMITED_OPS || syntax & RE_NO_BK_VBAR)
3127 goto normal_backslash;
3128 handle_alt:
3129 if (syntax & RE_LIMITED_OPS)
3130 goto normal_char;
3131
3132 /* Insert before the previous alternative a jump which
3133 jumps to this alternative if the former fails. */
3134 GET_BUFFER_SPACE (3);
3135 INSERT_JUMP (on_failure_jump, begalt, b + 6);
3136 pending_exact = 0;
3137 b += 3;
3138
3139 /* The alternative before this one has a jump after it
3140 which gets executed if it gets matched. Adjust that
3141 jump so it will jump to this alternative's analogous
3142 jump (put in below, which in turn will jump to the next
3143 (if any) alternative's such jump, etc.). The last such
3144 jump jumps to the correct final destination. A picture:
3145 _____ _____
3146 | | | |
3147 | v | v
3148 a | b | c
3149
3150 If we are at `b', then fixup_alt_jump right now points to a
3151 three-byte space after `a'. We'll put in the jump, set
3152 fixup_alt_jump to right after `b', and leave behind three
3153 bytes which we'll fill in when we get to after `c'. */
3154
3155 FIXUP_ALT_JUMP ();
3156
3157 /* Mark and leave space for a jump after this alternative,
3158 to be filled in later either by next alternative or
3159 when know we're at the end of a series of alternatives. */
3160 fixup_alt_jump = b;
3161 GET_BUFFER_SPACE (3);
3162 b += 3;
3163
3164 laststart = 0;
3165 begalt = b;
3166 break;
3167
3168
3169 case '{':
3170 /* If \{ is a literal. */
3171 if (!(syntax & RE_INTERVALS)
3172 /* If we're at `\{' and it's not the open-interval
3173 operator. */
3174 || (syntax & RE_NO_BK_BRACES))
3175 goto normal_backslash;
3176
3177 handle_interval:
3178 {
3179 /* If got here, then the syntax allows intervals. */
3180
3181 /* At least (most) this many matches must be made. */
3182 int lower_bound = 0, upper_bound = -1;
3183
3184 beg_interval = p;
3185
3186 if (p == pend)
3187 FREE_STACK_RETURN (REG_EBRACE);
3188
3189 GET_UNSIGNED_NUMBER (lower_bound);
3190
3191 if (c == ',')
3192 GET_UNSIGNED_NUMBER (upper_bound);
3193 else
3194 /* Interval such as `{1}' => match exactly once. */
3195 upper_bound = lower_bound;
3196
3197 if (lower_bound < 0 || upper_bound > RE_DUP_MAX
3198 || (upper_bound >= 0 && lower_bound > upper_bound))
3199 FREE_STACK_RETURN (REG_BADBR);
3200
3201 if (!(syntax & RE_NO_BK_BRACES))
3202 {
3203 if (c != '\\')
3204 FREE_STACK_RETURN (REG_BADBR);
3205
3206 PATFETCH (c);
3207 }
3208
3209 if (c != '}')
3210 FREE_STACK_RETURN (REG_BADBR);
3211
3212 /* We just parsed a valid interval. */
3213
3214 /* If it's invalid to have no preceding re. */
3215 if (!laststart)
3216 {
3217 if (syntax & RE_CONTEXT_INVALID_OPS)
3218 FREE_STACK_RETURN (REG_BADRPT);
3219 else if (syntax & RE_CONTEXT_INDEP_OPS)
3220 laststart = b;
3221 else
3222 goto unfetch_interval;
3223 }
3224
3225 if (upper_bound == 0)
3226 /* If the upper bound is zero, just drop the sub pattern
3227 altogether. */
3228 b = laststart;
3229 else if (lower_bound == 1 && upper_bound == 1)
3230 /* Just match it once: nothing to do here. */
3231 ;
3232
3233 /* Otherwise, we have a nontrivial interval. When
3234 we're all done, the pattern will look like:
3235 set_number_at <jump count> <upper bound>
3236 set_number_at <succeed_n count> <lower bound>
3237 succeed_n <after jump addr> <succeed_n count>
3238 <body of loop>
3239 jump_n <succeed_n addr> <jump count>
3240 (The upper bound and `jump_n' are omitted if
3241 `upper_bound' is 1, though.) */
3242 else
3243 { /* If the upper bound is > 1, we need to insert
3244 more at the end of the loop. */
3245 unsigned int nbytes = (upper_bound < 0 ? 3
3246 : upper_bound > 1 ? 5 : 0);
3247 unsigned int startoffset = 0;
3248
3249 GET_BUFFER_SPACE (20); /* We might use less. */
3250
3251 if (lower_bound == 0)
3252 {
3253 /* A succeed_n that starts with 0 is really a
3254 a simple on_failure_jump_loop. */
3255 INSERT_JUMP (on_failure_jump_loop, laststart,
3256 b + 3 + nbytes);
3257 b += 3;
3258 }
3259 else
3260 {
3261 /* Initialize lower bound of the `succeed_n', even
3262 though it will be set during matching by its
3263 attendant `set_number_at' (inserted next),
3264 because `re_compile_fastmap' needs to know.
3265 Jump to the `jump_n' we might insert below. */
3266 INSERT_JUMP2 (succeed_n, laststart,
3267 b + 5 + nbytes,
3268 lower_bound);
3269 b += 5;
3270
3271 /* Code to initialize the lower bound. Insert
3272 before the `succeed_n'. The `5' is the last two
3273 bytes of this `set_number_at', plus 3 bytes of
3274 the following `succeed_n'. */
3275 insert_op2 (set_number_at, laststart, 5, lower_bound, b);
3276 b += 5;
3277 startoffset += 5;
3278 }
3279
3280 if (upper_bound < 0)
3281 {
3282 /* A negative upper bound stands for infinity,
3283 in which case it degenerates to a plain jump. */
3284 STORE_JUMP (jump, b, laststart + startoffset);
3285 b += 3;
3286 }
3287 else if (upper_bound > 1)
3288 { /* More than one repetition is allowed, so
3289 append a backward jump to the `succeed_n'
3290 that starts this interval.
3291
3292 When we've reached this during matching,
3293 we'll have matched the interval once, so
3294 jump back only `upper_bound - 1' times. */
3295 STORE_JUMP2 (jump_n, b, laststart + startoffset,
3296 upper_bound - 1);
3297 b += 5;
3298
3299 /* The location we want to set is the second
3300 parameter of the `jump_n'; that is `b-2' as
3301 an absolute address. `laststart' will be
3302 the `set_number_at' we're about to insert;
3303 `laststart+3' the number to set, the source
3304 for the relative address. But we are
3305 inserting into the middle of the pattern --
3306 so everything is getting moved up by 5.
3307 Conclusion: (b - 2) - (laststart + 3) + 5,
3308 i.e., b - laststart.
3309
3310 We insert this at the beginning of the loop
3311 so that if we fail during matching, we'll
3312 reinitialize the bounds. */
3313 insert_op2 (set_number_at, laststart, b - laststart,
3314 upper_bound - 1, b);
3315 b += 5;
3316 }
3317 }
3318 pending_exact = 0;
3319 beg_interval = NULL;
3320 }
3321 break;
3322
3323 unfetch_interval:
3324 /* If an invalid interval, match the characters as literals. */
3325 assert (beg_interval);
3326 p = beg_interval;
3327 beg_interval = NULL;
3328
3329 /* normal_char and normal_backslash need `c'. */
3330 c = '{';
3331
3332 if (!(syntax & RE_NO_BK_BRACES))
3333 {
3334 assert (p > pattern && p[-1] == '\\');
3335 goto normal_backslash;
3336 }
3337 else
3338 goto normal_char;
3339
3340#ifdef emacs
3341 /* There is no way to specify the before_dot and after_dot
3342 operators. rms says this is ok. --karl */
3343 case '=':
3344 BUF_PUSH (at_dot);
3345 break;
3346
3347 case 's':
3348 laststart = b;
3349 PATFETCH (c);
3350 BUF_PUSH_2 (syntaxspec, syntax_spec_code[c]);
3351 break;
3352
3353 case 'S':
3354 laststart = b;
3355 PATFETCH (c);
3356 BUF_PUSH_2 (notsyntaxspec, syntax_spec_code[c]);
3357 break;
3358
3359 case 'c':
3360 laststart = b;
3361 PATFETCH (c);
3362 BUF_PUSH_2 (categoryspec, c);
3363 break;
3364
3365 case 'C':
3366 laststart = b;
3367 PATFETCH (c);
3368 BUF_PUSH_2 (notcategoryspec, c);
3369 break;
3370#endif /* emacs */
3371
3372
3373 case 'w':
3374 if (syntax & RE_NO_GNU_OPS)
3375 goto normal_char;
3376 laststart = b;
3377 BUF_PUSH_2 (syntaxspec, Sword);
3378 break;
3379
3380
3381 case 'W':
3382 if (syntax & RE_NO_GNU_OPS)
3383 goto normal_char;
3384 laststart = b;
3385 BUF_PUSH_2 (notsyntaxspec, Sword);
3386 break;
3387
3388
3389 case '<':
3390 if (syntax & RE_NO_GNU_OPS)
3391 goto normal_char;
3392 BUF_PUSH (wordbeg);
3393 break;
3394
3395 case '>':
3396 if (syntax & RE_NO_GNU_OPS)
3397 goto normal_char;
3398 BUF_PUSH (wordend);
3399 break;
3400
3401 case 'b':
3402 if (syntax & RE_NO_GNU_OPS)
3403 goto normal_char;
3404 BUF_PUSH (wordbound);
3405 break;
3406
3407 case 'B':
3408 if (syntax & RE_NO_GNU_OPS)
3409 goto normal_char;
3410 BUF_PUSH (notwordbound);
3411 break;
3412
3413 case '`':
3414 if (syntax & RE_NO_GNU_OPS)
3415 goto normal_char;
3416 BUF_PUSH (begbuf);
3417 break;
3418
3419 case '\'':
3420 if (syntax & RE_NO_GNU_OPS)
3421 goto normal_char;
3422 BUF_PUSH (endbuf);
3423 break;
3424
3425 case '1': case '2': case '3': case '4': case '5':
3426 case '6': case '7': case '8': case '9':
3427 {
3428 regnum_t reg;
3429
3430 if (syntax & RE_NO_BK_REFS)
3431 goto normal_backslash;
3432
3433 reg = c - '0';
3434
3435 /* Can't back reference to a subexpression before its end. */
3436 if (reg > regnum || group_in_compile_stack (compile_stack, reg))
3437 FREE_STACK_RETURN (REG_ESUBREG);
3438
3439 laststart = b;
3440 BUF_PUSH_2 (duplicate, reg);
3441 }
3442 break;
3443
3444
3445 case '+':
3446 case '?':
3447 if (syntax & RE_BK_PLUS_QM)
3448 goto handle_plus;
3449 else
3450 goto normal_backslash;
3451
3452 default:
3453 normal_backslash:
3454 /* You might think it would be useful for \ to mean
3455 not to translate; but if we don't translate it
3456 it will never match anything. */
3457 goto normal_char;
3458 }
3459 break;
3460
3461
3462 default:
3463 /* Expects the character in `c'. */
3464 normal_char:
3465 /* If no exactn currently being built. */
3466 if (!pending_exact
3467
3468 /* If last exactn not at current position. */
3469 || pending_exact + *pending_exact + 1 != b
3470
3471 /* We have only one byte following the exactn for the count. */
3472 || *pending_exact >= (1 << BYTEWIDTH) - MAX_MULTIBYTE_LENGTH
3473
3474 /* If followed by a repetition operator. */
3475 || (p != pend && (*p == '*' || *p == '^'))
3476 || ((syntax & RE_BK_PLUS_QM)
3477 ? p + 1 < pend && *p == '\\' && (p[1] == '+' || p[1] == '?')
3478 : p != pend && (*p == '+' || *p == '?'))
3479 || ((syntax & RE_INTERVALS)
3480 && ((syntax & RE_NO_BK_BRACES)
3481 ? p != pend && *p == '{'
3482 : p + 1 < pend && p[0] == '\\' && p[1] == '{')))
3483 {
3484 /* Start building a new exactn. */
3485
3486 laststart = b;
3487
3488 BUF_PUSH_2 (exactn, 0);
3489 pending_exact = b - 1;
3490 }
3491
3492 GET_BUFFER_SPACE (MAX_MULTIBYTE_LENGTH);
3493 {
3494 int len;
3495
3496 c = TRANSLATE (c);
3497 if (multibyte)
3498 len = CHAR_STRING (c, b);
3499 else
3500 *b = c, len = 1;
3501 b += len;
3502 (*pending_exact) += len;
3503 }
3504
3505 break;
3506 } /* switch (c) */
3507 } /* while p != pend */
3508
3509
3510 /* Through the pattern now. */
3511
3512 FIXUP_ALT_JUMP ();
3513
3514 if (!COMPILE_STACK_EMPTY)
3515 FREE_STACK_RETURN (REG_EPAREN);
3516
3517 /* If we don't want backtracking, force success
3518 the first time we reach the end of the compiled pattern. */
3519 if (syntax & RE_NO_POSIX_BACKTRACKING)
3520 BUF_PUSH (succeed);
3521
3522 /* We have succeeded; set the length of the buffer. */
3523 bufp->used = b - bufp->buffer;
3524
3525#ifdef DEBUG
3526 if (debug > 0)
3527 {
3528 re_compile_fastmap (bufp);
3529 DEBUG_PRINT1 ("\nCompiled pattern: \n");
3530 print_compiled_pattern (bufp);
3531 }
3532 debug--;
3533#endif /* DEBUG */
3534
3535#ifndef MATCH_MAY_ALLOCATE
3536 /* Initialize the failure stack to the largest possible stack. This
3537 isn't necessary unless we're trying to avoid calling alloca in
3538 the search and match routines. */
3539 {
3540 int num_regs = bufp->re_nsub + 1;
3541
3542 if (fail_stack.size < re_max_failures * TYPICAL_FAILURE_SIZE)
3543 {
3544 fail_stack.size = re_max_failures * TYPICAL_FAILURE_SIZE;
3545
3546 if (! fail_stack.stack)
3547 fail_stack.stack
3548 = (fail_stack_elt_t *) malloc (fail_stack.size
3549 * sizeof (fail_stack_elt_t));
3550 else
3551 fail_stack.stack
3552 = (fail_stack_elt_t *) realloc (fail_stack.stack,
3553 (fail_stack.size
3554 * sizeof (fail_stack_elt_t)));
3555 }
3556
3557 regex_grow_registers (num_regs);
3558 }
3559#endif /* not MATCH_MAY_ALLOCATE */
3560
3561 FREE_STACK_RETURN (REG_NOERROR);
3562} /* regex_compile */
3563
3564/* Subroutines for `regex_compile'. */
3565
3566/* Store OP at LOC followed by two-byte integer parameter ARG. */
3567
3568static void
3569store_op1 (op, loc, arg)
3570 re_opcode_t op;
3571 unsigned char *loc;
3572 int arg;
3573{
3574 *loc = (unsigned char) op;
3575 STORE_NUMBER (loc + 1, arg);
3576}
3577
3578
3579/* Like `store_op1', but for two two-byte parameters ARG1 and ARG2. */
3580
3581static void
3582store_op2 (op, loc, arg1, arg2)
3583 re_opcode_t op;
3584 unsigned char *loc;
3585 int arg1, arg2;
3586{
3587 *loc = (unsigned char) op;
3588 STORE_NUMBER (loc + 1, arg1);
3589 STORE_NUMBER (loc + 3, arg2);
3590}
3591
3592
3593/* Copy the bytes from LOC to END to open up three bytes of space at LOC
3594 for OP followed by two-byte integer parameter ARG. */
3595
3596static void
3597insert_op1 (op, loc, arg, end)
3598 re_opcode_t op;
3599 unsigned char *loc;
3600 int arg;
3601 unsigned char *end;
3602{
3603 register unsigned char *pfrom = end;
3604 register unsigned char *pto = end + 3;
3605
3606 while (pfrom != loc)
3607 *--pto = *--pfrom;
3608
3609 store_op1 (op, loc, arg);
3610}
3611
3612
3613/* Like `insert_op1', but for two two-byte parameters ARG1 and ARG2. */
3614
3615static void
3616insert_op2 (op, loc, arg1, arg2, end)
3617 re_opcode_t op;
3618 unsigned char *loc;
3619 int arg1, arg2;
3620 unsigned char *end;
3621{
3622 register unsigned char *pfrom = end;
3623 register unsigned char *pto = end + 5;
3624
3625 while (pfrom != loc)
3626 *--pto = *--pfrom;
3627
3628 store_op2 (op, loc, arg1, arg2);
3629}
3630
3631
3632/* P points to just after a ^ in PATTERN. Return true if that ^ comes
3633 after an alternative or a begin-subexpression. We assume there is at
3634 least one character before the ^. */
3635
3636static boolean
3637at_begline_loc_p (pattern, p, syntax)
3638 re_char *pattern, *p;
3639 reg_syntax_t syntax;
3640{
3641 re_char *prev = p - 2;
3642 boolean prev_prev_backslash = prev > pattern && prev[-1] == '\\';
3643
3644 return
3645 /* After a subexpression? */
3646 (*prev == '(' && (syntax & RE_NO_BK_PARENS || prev_prev_backslash))
3647 /* After an alternative? */
3648 || (*prev == '|' && (syntax & RE_NO_BK_VBAR || prev_prev_backslash))
3649 /* After a shy subexpression? */
3650 || ((syntax & RE_SHY_GROUPS) && prev - 2 >= pattern
3651 && prev[-1] == '?' && prev[-2] == '('
3652 && (syntax & RE_NO_BK_PARENS
3653 || (prev - 3 >= pattern && prev[-3] == '\\')));
3654}
3655
3656
3657/* The dual of at_begline_loc_p. This one is for $. We assume there is
3658 at least one character after the $, i.e., `P < PEND'. */
3659
3660static boolean
3661at_endline_loc_p (p, pend, syntax)
3662 re_char *p, *pend;
3663 reg_syntax_t syntax;
3664{
3665 re_char *next = p;
3666 boolean next_backslash = *next == '\\';
3667 re_char *next_next = p + 1 < pend ? p + 1 : 0;
3668
3669 return
3670 /* Before a subexpression? */
3671 (syntax & RE_NO_BK_PARENS ? *next == ')'
3672 : next_backslash && next_next && *next_next == ')')
3673 /* Before an alternative? */
3674 || (syntax & RE_NO_BK_VBAR ? *next == '|'
3675 : next_backslash && next_next && *next_next == '|');
3676}
3677
3678
3679/* Returns true if REGNUM is in one of COMPILE_STACK's elements and
3680 false if it's not. */
3681
3682static boolean
3683group_in_compile_stack (compile_stack, regnum)
3684 compile_stack_type compile_stack;
3685 regnum_t regnum;
3686{
3687 int this_element;
3688
3689 for (this_element = compile_stack.avail - 1;
3690 this_element >= 0;
3691 this_element--)
3692 if (compile_stack.stack[this_element].regnum == regnum)
3693 return true;
3694
3695 return false;
3696}
3697
3698/* analyse_first.
3699 If fastmap is non-NULL, go through the pattern and fill fastmap
3700 with all the possible leading chars. If fastmap is NULL, don't
3701 bother filling it up (obviously) and only return whether the
3702 pattern could potentially match the empty string.
3703
3704 Return 1 if p..pend might match the empty string.
3705 Return 0 if p..pend matches at least one char.
3706 Return -1 if fastmap was not updated accurately. */
3707
3708static int
3709analyse_first (p, pend, fastmap, multibyte)
3710 re_char *p, *pend;
3711 char *fastmap;
3712 const int multibyte;
3713{
3714 int j, k;
3715 boolean not;
3716
3717 /* If all elements for base leading-codes in fastmap is set, this
3718 flag is set true. */
3719 boolean match_any_multibyte_characters = false;
3720
3721 assert (p);
3722
3723 /* The loop below works as follows:
3724 - It has a working-list kept in the PATTERN_STACK and which basically
3725 starts by only containing a pointer to the first operation.
3726 - If the opcode we're looking at is a match against some set of
3727 chars, then we add those chars to the fastmap and go on to the
3728 next work element from the worklist (done via `break').
3729 - If the opcode is a control operator on the other hand, we either
3730 ignore it (if it's meaningless at this point, such as `start_memory')
3731 or execute it (if it's a jump). If the jump has several destinations
3732 (i.e. `on_failure_jump'), then we push the other destination onto the
3733 worklist.
3734 We guarantee termination by ignoring backward jumps (more or less),
3735 so that `p' is monotonically increasing. More to the point, we
3736 never set `p' (or push) anything `<= p1'. */
3737
3738 while (p < pend)
3739 {
3740 /* `p1' is used as a marker of how far back a `on_failure_jump'
3741 can go without being ignored. It is normally equal to `p'
3742 (which prevents any backward `on_failure_jump') except right
3743 after a plain `jump', to allow patterns such as:
3744 0: jump 10
3745 3..9: <body>
3746 10: on_failure_jump 3
3747 as used for the *? operator. */
3748 re_char *p1 = p;
3749
3750 switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++))
3751 {
3752 case succeed:
3753 return 1;
3754 continue;
3755
3756 case duplicate:
3757 /* If the first character has to match a backreference, that means
3758 that the group was empty (since it already matched). Since this
3759 is the only case that interests us here, we can assume that the
3760 backreference must match the empty string. */
3761 p++;
3762 continue;
3763
3764
3765 /* Following are the cases which match a character. These end
3766 with `break'. */
3767
3768 case exactn:
3769 if (fastmap)
3770 {
3771 int c = RE_STRING_CHAR (p + 1, pend - p);
3772
3773 if (SINGLE_BYTE_CHAR_P (c))
3774 fastmap[c] = 1;
3775 else
3776 fastmap[p[1]] = 1;
3777 }
3778 break;
3779
3780
3781 case anychar:
3782 /* We could put all the chars except for \n (and maybe \0)
3783 but we don't bother since it is generally not worth it. */
3784 if (!fastmap) break;
3785 return -1;
3786
3787
3788 case charset_not:
3789 /* Chars beyond end of bitmap are possible matches.
3790 All the single-byte codes can occur in multibyte buffers.
3791 So any that are not listed in the charset
3792 are possible matches, even in multibyte buffers. */
3793 if (!fastmap) break;
3794 for (j = CHARSET_BITMAP_SIZE (&p[-1]) * BYTEWIDTH;
3795 j < (1 << BYTEWIDTH); j++)
3796 fastmap[j] = 1;
3797 /* Fallthrough */
3798 case charset:
3799 if (!fastmap) break;
3800 not = (re_opcode_t) *(p - 1) == charset_not;
3801 for (j = CHARSET_BITMAP_SIZE (&p[-1]) * BYTEWIDTH - 1, p++;
3802 j >= 0; j--)
3803 if (!!(p[j / BYTEWIDTH] & (1 << (j % BYTEWIDTH))) ^ not)
3804 fastmap[j] = 1;
3805
3806 if ((not && multibyte)
3807 /* Any character set can possibly contain a character
3808 which doesn't match the specified set of characters. */
3809 || (CHARSET_RANGE_TABLE_EXISTS_P (&p[-2])
3810 && CHARSET_RANGE_TABLE_BITS (&p[-2]) != 0))
3811 /* If we can match a character class, we can match
3812 any character set. */
3813 {
3814 set_fastmap_for_multibyte_characters:
3815 if (match_any_multibyte_characters == false)
3816 {
3817 for (j = 0x80; j < 0xA0; j++) /* XXX */
3818 if (BASE_LEADING_CODE_P (j))
3819 fastmap[j] = 1;
3820 match_any_multibyte_characters = true;
3821 }
3822 }
3823
3824 else if (!not && CHARSET_RANGE_TABLE_EXISTS_P (&p[-2])
3825 && match_any_multibyte_characters == false)
3826 {
3827 /* Set fastmap[I] 1 where I is a base leading code of each
3828 multibyte character in the range table. */
3829 int c, count;
3830
3831 /* Make P points the range table. `+ 2' is to skip flag
3832 bits for a character class. */
3833 p += CHARSET_BITMAP_SIZE (&p[-2]) + 2;
3834
3835 /* Extract the number of ranges in range table into COUNT. */
3836 EXTRACT_NUMBER_AND_INCR (count, p);
3837 for (; count > 0; count--, p += 2 * 3) /* XXX */
3838 {
3839 /* Extract the start of each range. */
3840 EXTRACT_CHARACTER (c, p);
3841 j = CHAR_CHARSET (c);
3842 fastmap[CHARSET_LEADING_CODE_BASE (j)] = 1;
3843 }
3844 }
3845 break;
3846
3847 case syntaxspec:
3848 case notsyntaxspec:
3849 if (!fastmap) break;
3850#ifndef emacs
3851 not = (re_opcode_t)p[-1] == notsyntaxspec;
3852 k = *p++;
3853 for (j = 0; j < (1 << BYTEWIDTH); j++)
3854 if ((SYNTAX (j) == (enum syntaxcode) k) ^ not)
3855 fastmap[j] = 1;
3856 break;
3857#else /* emacs */
3858 /* This match depends on text properties. These end with
3859 aborting optimizations. */
3860 return -1;
3861
3862 case categoryspec:
3863 case notcategoryspec:
3864 if (!fastmap) break;
3865 not = (re_opcode_t)p[-1] == notcategoryspec;
3866 k = *p++;
3867 for (j = 0; j < (1 << BYTEWIDTH); j++)
3868 if ((CHAR_HAS_CATEGORY (j, k)) ^ not)
3869 fastmap[j] = 1;
3870
3871 if (multibyte)
3872 /* Any character set can possibly contain a character
3873 whose category is K (or not). */
3874 goto set_fastmap_for_multibyte_characters;
3875 break;
3876
3877 /* All cases after this match the empty string. These end with
3878 `continue'. */
3879
3880 case before_dot:
3881 case at_dot:
3882 case after_dot:
3883#endif /* !emacs */
3884 case no_op:
3885 case begline:
3886 case endline:
3887 case begbuf:
3888 case endbuf:
3889 case wordbound:
3890 case notwordbound:
3891 case wordbeg:
3892 case wordend:
3893 continue;
3894
3895
3896 case jump:
3897 EXTRACT_NUMBER_AND_INCR (j, p);
3898 if (j < 0)
3899 /* Backward jumps can only go back to code that we've already
3900 visited. `re_compile' should make sure this is true. */
3901 break;
3902 p += j;
3903 switch (SWITCH_ENUM_CAST ((re_opcode_t) *p))
3904 {
3905 case on_failure_jump:
3906 case on_failure_keep_string_jump:
3907 case on_failure_jump_loop:
3908 case on_failure_jump_nastyloop:
3909 case on_failure_jump_smart:
3910 p++;
3911 break;
3912 default:
3913 continue;
3914 };
3915 /* Keep `p1' to allow the `on_failure_jump' we are jumping to
3916 to jump back to "just after here". */
3917 /* Fallthrough */
3918
3919 case on_failure_jump:
3920 case on_failure_keep_string_jump:
3921 case on_failure_jump_nastyloop:
3922 case on_failure_jump_loop:
3923 case on_failure_jump_smart:
3924 EXTRACT_NUMBER_AND_INCR (j, p);
3925 if (p + j <= p1)
3926 ; /* Backward jump to be ignored. */
3927 else
3928 { /* We have to look down both arms.
3929 We first go down the "straight" path so as to minimize
3930 stack usage when going through alternatives. */
3931 int r = analyse_first (p, pend, fastmap, multibyte);
3932 if (r) return r;
3933 p += j;
3934 }
3935 continue;
3936
3937
3938 case jump_n:
3939 /* This code simply does not properly handle forward jump_n. */
3940 DEBUG_STATEMENT (EXTRACT_NUMBER (j, p); assert (j < 0));
3941 p += 4;
3942 /* jump_n can either jump or fall through. The (backward) jump
3943 case has already been handled, so we only need to look at the
3944 fallthrough case. */
3945 continue;
3946
3947 case succeed_n:
3948 /* If N == 0, it should be an on_failure_jump_loop instead. */
3949 DEBUG_STATEMENT (EXTRACT_NUMBER (j, p + 2); assert (j > 0));
3950 p += 4;
3951 /* We only care about one iteration of the loop, so we don't
3952 need to consider the case where this behaves like an
3953 on_failure_jump. */
3954 continue;
3955
3956
3957 case set_number_at:
3958 p += 4;
3959 continue;
3960
3961
3962 case start_memory:
3963 case stop_memory:
3964 p += 1;
3965 continue;
3966
3967
3968 default:
3969 abort (); /* We have listed all the cases. */
3970 } /* switch *p++ */
3971
3972 /* Getting here means we have found the possible starting
3973 characters for one path of the pattern -- and that the empty
3974 string does not match. We need not follow this path further. */
3975 return 0;
3976 } /* while p */
3977
3978 /* We reached the end without matching anything. */
3979 return 1;
3980
3981} /* analyse_first */
3982
3983/* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
3984 BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible
3985 characters can start a string that matches the pattern. This fastmap
3986 is used by re_search to skip quickly over impossible starting points.
3987
3988 Character codes above (1 << BYTEWIDTH) are not represented in the
3989 fastmap, but the leading codes are represented. Thus, the fastmap
3990 indicates which character sets could start a match.
3991
3992 The caller must supply the address of a (1 << BYTEWIDTH)-byte data
3993 area as BUFP->fastmap.
3994
3995 We set the `fastmap', `fastmap_accurate', and `can_be_null' fields in
3996 the pattern buffer.
3997
3998 Returns 0 if we succeed, -2 if an internal error. */
3999
4000int
4001re_compile_fastmap (bufp)
4002 struct re_pattern_buffer *bufp;
4003{
4004 char *fastmap = bufp->fastmap;
4005 int analysis;
4006
4007 assert (fastmap && bufp->buffer);
4008
4009 bzero (fastmap, 1 << BYTEWIDTH); /* Assume nothing's valid. */
4010 bufp->fastmap_accurate = 1; /* It will be when we're done. */
4011
4012 analysis = analyse_first (bufp->buffer, bufp->buffer + bufp->used,
4013 fastmap, RE_MULTIBYTE_P (bufp));
4014 bufp->can_be_null = (analysis != 0);
4015 return 0;
4016} /* re_compile_fastmap */
4017
4018/* Set REGS to hold NUM_REGS registers, storing them in STARTS and
4019 ENDS. Subsequent matches using PATTERN_BUFFER and REGS will use
4020 this memory for recording register information. STARTS and ENDS
4021 must be allocated using the malloc library routine, and must each
4022 be at least NUM_REGS * sizeof (regoff_t) bytes long.
4023
4024 If NUM_REGS == 0, then subsequent matches should allocate their own
4025 register data.
4026
4027 Unless this function is called, the first search or match using
4028 PATTERN_BUFFER will allocate its own register data, without
4029 freeing the old data. */
4030
4031void
4032re_set_registers (bufp, regs, num_regs, starts, ends)
4033 struct re_pattern_buffer *bufp;
4034 struct re_registers *regs;
4035 unsigned num_regs;
4036 regoff_t *starts, *ends;
4037{
4038 if (num_regs)
4039 {
4040 bufp->regs_allocated = REGS_REALLOCATE;
4041 regs->num_regs = num_regs;
4042 regs->start = starts;
4043 regs->end = ends;
4044 }
4045 else
4046 {
4047 bufp->regs_allocated = REGS_UNALLOCATED;
4048 regs->num_regs = 0;
4049 regs->start = regs->end = (regoff_t *) 0;
4050 }
4051}
4052WEAK_ALIAS (__re_set_registers, re_set_registers)
4053
4054/* Searching routines. */
4055
4056/* Like re_search_2, below, but only one string is specified, and
4057 doesn't let you say where to stop matching. */
4058
4059int
4060re_search (bufp, string, size, startpos, range, regs)
4061 struct re_pattern_buffer *bufp;
4062 const char *string;
4063 int size, startpos, range;
4064 struct re_registers *regs;
4065{
4066 return re_search_2 (bufp, NULL, 0, string, size, startpos, range,
4067 regs, size);
4068}
4069WEAK_ALIAS (__re_search, re_search)
4070
4071/* Head address of virtual concatenation of string. */
4072#define HEAD_ADDR_VSTRING(P) \
4073 (((P) >= size1 ? string2 : string1))
4074
4075/* End address of virtual concatenation of string. */
4076#define STOP_ADDR_VSTRING(P) \
4077 (((P) >= size1 ? string2 + size2 : string1 + size1))
4078
4079/* Address of POS in the concatenation of virtual string. */
4080#define POS_ADDR_VSTRING(POS) \
4081 (((POS) >= size1 ? string2 - size1 : string1) + (POS))
4082
4083/* Using the compiled pattern in BUFP->buffer, first tries to match the
4084 virtual concatenation of STRING1 and STRING2, starting first at index
4085 STARTPOS, then at STARTPOS + 1, and so on.
4086
4087 STRING1 and STRING2 have length SIZE1 and SIZE2, respectively.
4088
4089 RANGE is how far to scan while trying to match. RANGE = 0 means try
4090 only at STARTPOS; in general, the last start tried is STARTPOS +
4091 RANGE.
4092
4093 In REGS, return the indices of the virtual concatenation of STRING1
4094 and STRING2 that matched the entire BUFP->buffer and its contained
4095 subexpressions.
4096
4097 Do not consider matching one past the index STOP in the virtual
4098 concatenation of STRING1 and STRING2.
4099
4100 We return either the position in the strings at which the match was
4101 found, -1 if no match, or -2 if error (such as failure
4102 stack overflow). */
4103
4104int
4105re_search_2 (bufp, str1, size1, str2, size2, startpos, range, regs, stop)
4106 struct re_pattern_buffer *bufp;
4107 const char *str1, *str2;
4108 int size1, size2;
4109 int startpos;
4110 int range;
4111 struct re_registers *regs;
4112 int stop;
4113{
4114 int val;
4115 re_char *string1 = (re_char*) str1;
4116 re_char *string2 = (re_char*) str2;
4117 register char *fastmap = bufp->fastmap;
4118 register RE_TRANSLATE_TYPE translate = bufp->translate;
4119 int total_size = size1 + size2;
4120 int endpos = startpos + range;
4121 boolean anchored_start;
4122
4123 /* Nonzero if we have to concern multibyte character. */
4124 const boolean multibyte = RE_MULTIBYTE_P (bufp);
4125
4126 /* Check for out-of-range STARTPOS. */
4127 if (startpos < 0 || startpos > total_size)
4128 return -1;
4129
4130 /* Fix up RANGE if it might eventually take us outside
4131 the virtual concatenation of STRING1 and STRING2.
4132 Make sure we won't move STARTPOS below 0 or above TOTAL_SIZE. */
4133 if (endpos < 0)
4134 range = 0 - startpos;
4135 else if (endpos > total_size)
4136 range = total_size - startpos;
4137
4138 /* If the search isn't to be a backwards one, don't waste time in a
4139 search for a pattern anchored at beginning of buffer. */
4140 if (bufp->used > 0 && (re_opcode_t) bufp->buffer[0] == begbuf && range > 0)
4141 {
4142 if (startpos > 0)
4143 return -1;
4144 else
4145 range = 0;
4146 }
4147
4148#ifdef emacs
4149 /* In a forward search for something that starts with \=.
4150 don't keep searching past point. */
4151 if (bufp->used > 0 && (re_opcode_t) bufp->buffer[0] == at_dot && range > 0)
4152 {
4153 range = PT_BYTE - BEGV_BYTE - startpos;
4154 if (range < 0)
4155 return -1;
4156 }
4157#endif /* emacs */
4158
4159 /* Update the fastmap now if not correct already. */
4160 if (fastmap && !bufp->fastmap_accurate)
4161 re_compile_fastmap (bufp);
4162
4163 /* See whether the pattern is anchored. */
4164 anchored_start = (bufp->buffer[0] == begline);
4165
4166#ifdef emacs
4167 gl_state.object = re_match_object;
4168 {
4169 int charpos = SYNTAX_TABLE_BYTE_TO_CHAR (POS_AS_IN_BUFFER (startpos));
4170
4171 SETUP_SYNTAX_TABLE_FOR_OBJECT (re_match_object, charpos, 1);
4172 }
4173#endif
4174
4175 /* Loop through the string, looking for a place to start matching. */
4176 for (;;)
4177 {
4178 /* If the pattern is anchored,
4179 skip quickly past places we cannot match.
4180 We don't bother to treat startpos == 0 specially
4181 because that case doesn't repeat. */
4182 if (anchored_start && startpos > 0)
4183 {
4184 if (! ((startpos <= size1 ? string1[startpos - 1]
4185 : string2[startpos - size1 - 1])
4186 == '\n'))
4187 goto advance;
4188 }
4189
4190 /* If a fastmap is supplied, skip quickly over characters that
4191 cannot be the start of a match. If the pattern can match the
4192 null string, however, we don't need to skip characters; we want
4193 the first null string. */
4194 if (fastmap && startpos < total_size && !bufp->can_be_null)
4195 {
4196 register re_char *d;
4197 register re_wchar_t buf_ch;
4198
4199 d = POS_ADDR_VSTRING (startpos);
4200
4201 if (range > 0) /* Searching forwards. */
4202 {
4203 register int lim = 0;
4204 int irange = range;
4205
4206 if (startpos < size1 && startpos + range >= size1)
4207 lim = range - (size1 - startpos);
4208
4209 /* Written out as an if-else to avoid testing `translate'
4210 inside the loop. */
4211 if (RE_TRANSLATE_P (translate))
4212 {
4213 if (multibyte)
4214 while (range > lim)
4215 {
4216 int buf_charlen;
4217
4218 buf_ch = STRING_CHAR_AND_LENGTH (d, range - lim,
4219 buf_charlen);
4220
4221 buf_ch = RE_TRANSLATE (translate, buf_ch);
4222 if (buf_ch >= 0400
4223 || fastmap[buf_ch])
4224 break;
4225
4226 range -= buf_charlen;
4227 d += buf_charlen;
4228 }
4229 else
4230 while (range > lim
4231 && !fastmap[RE_TRANSLATE (translate, *d)])
4232 {
4233 d++;
4234 range--;
4235 }
4236 }
4237 else
4238 while (range > lim && !fastmap[*d])
4239 {
4240 d++;
4241 range--;
4242 }
4243
4244 startpos += irange - range;
4245 }
4246 else /* Searching backwards. */
4247 {
4248 int room = (startpos >= size1
4249 ? size2 + size1 - startpos
4250 : size1 - startpos);
4251 buf_ch = RE_STRING_CHAR (d, room);
4252 buf_ch = TRANSLATE (buf_ch);
4253
4254 if (! (buf_ch >= 0400
4255 || fastmap[buf_ch]))
4256 goto advance;
4257 }
4258 }
4259
4260 /* If can't match the null string, and that's all we have left, fail. */
4261 if (range >= 0 && startpos == total_size && fastmap
4262 && !bufp->can_be_null)
4263 return -1;
4264
4265 val = re_match_2_internal (bufp, string1, size1, string2, size2,
4266 startpos, regs, stop);
4267#ifndef REGEX_MALLOC
4268# ifdef C_ALLOCA
4269 alloca (0);
4270# endif
4271#endif
4272
4273 if (val >= 0)
4274 return startpos;
4275
4276 if (val == -2)
4277 return -2;
4278
4279 advance:
4280 if (!range)
4281 break;
4282 else if (range > 0)
4283 {
4284 /* Update STARTPOS to the next character boundary. */
4285 if (multibyte)
4286 {
4287 re_char *p = POS_ADDR_VSTRING (startpos);
4288 re_char *pend = STOP_ADDR_VSTRING (startpos);
4289 int len = MULTIBYTE_FORM_LENGTH (p, pend - p);
4290
4291 range -= len;
4292 if (range < 0)
4293 break;
4294 startpos += len;
4295 }
4296 else
4297 {
4298 range--;
4299 startpos++;
4300 }
4301 }
4302 else
4303 {
4304 range++;
4305 startpos--;
4306
4307 /* Update STARTPOS to the previous character boundary. */
4308 if (multibyte)
4309 {
4310 re_char *p = POS_ADDR_VSTRING (startpos) + 1;
4311 re_char *p0 = p;
4312 re_char *phead = HEAD_ADDR_VSTRING (startpos);
4313
4314 /* Find the head of multibyte form. */
4315 PREV_CHAR_BOUNDARY (p, phead);
4316 range += p0 - 1 - p;
4317 if (range > 0)
4318 break;
4319
4320 startpos -= p0 - 1 - p;
4321 }
4322 }
4323 }
4324 return -1;
4325} /* re_search_2 */
4326WEAK_ALIAS (__re_search_2, re_search_2)
4327
4328/* Declarations and macros for re_match_2. */
4329
4330static int bcmp_translate _RE_ARGS((re_char *s1, re_char *s2,
4331 register int len,
4332 RE_TRANSLATE_TYPE translate,
4333 const int multibyte));
4334
4335/* This converts PTR, a pointer into one of the search strings `string1'
4336 and `string2' into an offset from the beginning of that string. */
4337#define POINTER_TO_OFFSET(ptr) \
4338 (FIRST_STRING_P (ptr) \
4339 ? ((regoff_t) ((ptr) - string1)) \
4340 : ((regoff_t) ((ptr) - string2 + size1)))
4341
4342/* Call before fetching a character with *d. This switches over to
4343 string2 if necessary.
4344 Check re_match_2_internal for a discussion of why end_match_2 might
4345 not be within string2 (but be equal to end_match_1 instead). */
4346#define PREFETCH() \
4347 while (d == dend) \
4348 { \
4349 /* End of string2 => fail. */ \
4350 if (dend == end_match_2) \
4351 goto fail; \
4352 /* End of string1 => advance to string2. */ \
4353 d = string2; \
4354 dend = end_match_2; \
4355 }
4356
4357/* Call before fetching a char with *d if you already checked other limits.
4358 This is meant for use in lookahead operations like wordend, etc..
4359 where we might need to look at parts of the string that might be
4360 outside of the LIMITs (i.e past `stop'). */
4361#define PREFETCH_NOLIMIT() \
4362 if (d == end1) \
4363 { \
4364 d = string2; \
4365 dend = end_match_2; \
4366 } \
4367
4368/* Test if at very beginning or at very end of the virtual concatenation
4369 of `string1' and `string2'. If only one string, it's `string2'. */
4370#define AT_STRINGS_BEG(d) ((d) == (size1 ? string1 : string2) || !size2)
4371#define AT_STRINGS_END(d) ((d) == end2)
4372
4373
4374/* Test if D points to a character which is word-constituent. We have
4375 two special cases to check for: if past the end of string1, look at
4376 the first character in string2; and if before the beginning of
4377 string2, look at the last character in string1. */
4378#define WORDCHAR_P(d) \
4379 (SYNTAX ((d) == end1 ? *string2 \
4380 : (d) == string2 - 1 ? *(end1 - 1) : *(d)) \
4381 == Sword)
4382
4383/* Disabled due to a compiler bug -- see comment at case wordbound */
4384
4385/* The comment at case wordbound is following one, but we don't use
4386 AT_WORD_BOUNDARY anymore to support multibyte form.
4387
4388 The DEC Alpha C compiler 3.x generates incorrect code for the
4389 test WORDCHAR_P (d - 1) != WORDCHAR_P (d) in the expansion of
4390 AT_WORD_BOUNDARY, so this code is disabled. Expanding the
4391 macro and introducing temporary variables works around the bug. */
4392
4393#if 0
4394/* Test if the character before D and the one at D differ with respect
4395 to being word-constituent. */
4396#define AT_WORD_BOUNDARY(d) \
4397 (AT_STRINGS_BEG (d) || AT_STRINGS_END (d) \
4398 || WORDCHAR_P (d - 1) != WORDCHAR_P (d))
4399#endif
4400
4401/* Free everything we malloc. */
4402#ifdef MATCH_MAY_ALLOCATE
4403# define FREE_VAR(var) if (var) { REGEX_FREE (var); var = NULL; } else
4404# define FREE_VARIABLES() \
4405 do { \
4406 REGEX_FREE_STACK (fail_stack.stack); \
4407 FREE_VAR (regstart); \
4408 FREE_VAR (regend); \
4409 FREE_VAR (best_regstart); \
4410 FREE_VAR (best_regend); \
4411 } while (0)
4412#else
4413# define FREE_VARIABLES() ((void)0) /* Do nothing! But inhibit gcc warning. */
4414#endif /* not MATCH_MAY_ALLOCATE */
4415
4416
4417/* Optimization routines. */
4418
4419/* If the operation is a match against one or more chars,
4420 return a pointer to the next operation, else return NULL. */
4421static re_char *
4422skip_one_char (p)
4423 re_char *p;
4424{
4425 switch (SWITCH_ENUM_CAST (*p++))
4426 {
4427 case anychar:
4428 break;
4429
4430 case exactn:
4431 p += *p + 1;
4432 break;
4433
4434 case charset_not:
4435 case charset:
4436 if (CHARSET_RANGE_TABLE_EXISTS_P (p - 1))
4437 {
4438 int mcnt;
4439 p = CHARSET_RANGE_TABLE (p - 1);
4440 EXTRACT_NUMBER_AND_INCR (mcnt, p);
4441 p = CHARSET_RANGE_TABLE_END (p, mcnt);
4442 }
4443 else
4444 p += 1 + CHARSET_BITMAP_SIZE (p - 1);
4445 break;
4446
4447 case syntaxspec:
4448 case notsyntaxspec:
4449#ifdef emacs
4450 case categoryspec:
4451 case notcategoryspec:
4452#endif /* emacs */
4453 p++;
4454 break;
4455
4456 default:
4457 p = NULL;
4458 }
4459 return p;
4460}
4461
4462
4463/* Jump over non-matching operations. */
4464static re_char *
4465skip_noops (p, pend)
4466 re_char *p, *pend;
4467{
4468 int mcnt;
4469 while (p < pend)
4470 {
4471 switch (SWITCH_ENUM_CAST ((re_opcode_t) *p))
4472 {
4473 case start_memory:
4474 case stop_memory:
4475 p += 2; break;
4476 case no_op:
4477 p += 1; break;
4478 case jump:
4479 p += 1;
4480 EXTRACT_NUMBER_AND_INCR (mcnt, p);
4481 p += mcnt;
4482 break;
4483 default:
4484 return p;
4485 }
4486 }
4487 assert (p == pend);
4488 return p;
4489}
4490
4491/* Non-zero if "p1 matches something" implies "p2 fails". */
4492static int
4493mutually_exclusive_p (bufp, p1, p2)
4494 struct re_pattern_buffer *bufp;
4495 re_char *p1, *p2;
4496{
4497 re_opcode_t op2;
4498 const boolean multibyte = RE_MULTIBYTE_P (bufp);
4499 unsigned char *pend = bufp->buffer + bufp->used;
4500
4501 assert (p1 >= bufp->buffer && p1 < pend
4502 && p2 >= bufp->buffer && p2 <= pend);
4503
4504 /* Skip over open/close-group commands.
4505 If what follows this loop is a ...+ construct,
4506 look at what begins its body, since we will have to
4507 match at least one of that. */
4508 p2 = skip_noops (p2, pend);
4509 /* The same skip can be done for p1, except that this function
4510 is only used in the case where p1 is a simple match operator. */
4511 /* p1 = skip_noops (p1, pend); */
4512
4513 assert (p1 >= bufp->buffer && p1 < pend
4514 && p2 >= bufp->buffer && p2 <= pend);
4515
4516 op2 = p2 == pend ? succeed : *p2;
4517
4518 switch (SWITCH_ENUM_CAST (op2))
4519 {
4520 case succeed:
4521 case endbuf:
4522 /* If we're at the end of the pattern, we can change. */
4523 if (skip_one_char (p1))
4524 {
4525 DEBUG_PRINT1 (" End of pattern: fast loop.\n");
4526 return 1;
4527 }
4528 break;
4529
4530 case endline:
4531 case exactn:
4532 {
4533 register re_wchar_t c
4534 = (re_opcode_t) *p2 == endline ? '\n'
4535 : RE_STRING_CHAR (p2 + 2, pend - p2 - 2);
4536
4537 if ((re_opcode_t) *p1 == exactn)
4538 {
4539 if (c != RE_STRING_CHAR (p1 + 2, pend - p1 - 2))
4540 {
4541 DEBUG_PRINT3 (" '%c' != '%c' => fast loop.\n", c, p1[2]);
4542 return 1;
4543 }
4544 }
4545
4546 else if ((re_opcode_t) *p1 == charset
4547 || (re_opcode_t) *p1 == charset_not)
4548 {
4549 int not = (re_opcode_t) *p1 == charset_not;
4550
4551 /* Test if C is listed in charset (or charset_not)
4552 at `p1'. */
4553 if (SINGLE_BYTE_CHAR_P (c))
4554 {
4555 if (c < CHARSET_BITMAP_SIZE (p1) * BYTEWIDTH
4556 && p1[2 + c / BYTEWIDTH] & (1 << (c % BYTEWIDTH)))
4557 not = !not;
4558 }
4559 else if (CHARSET_RANGE_TABLE_EXISTS_P (p1))
4560 CHARSET_LOOKUP_RANGE_TABLE (not, c, p1);
4561
4562 /* `not' is equal to 1 if c would match, which means
4563 that we can't change to pop_failure_jump. */
4564 if (!not)
4565 {
4566 DEBUG_PRINT1 (" No match => fast loop.\n");
4567 return 1;
4568 }
4569 }
4570 else if ((re_opcode_t) *p1 == anychar
4571 && c == '\n')
4572 {
4573 DEBUG_PRINT1 (" . != \\n => fast loop.\n");
4574 return 1;
4575 }
4576 }
4577 break;
4578
4579 case charset:
4580 {
4581 if ((re_opcode_t) *p1 == exactn)
4582 /* Reuse the code above. */
4583 return mutually_exclusive_p (bufp, p2, p1);
4584
4585 /* It is hard to list up all the character in charset
4586 P2 if it includes multibyte character. Give up in
4587 such case. */
4588 else if (!multibyte || !CHARSET_RANGE_TABLE_EXISTS_P (p2))
4589 {
4590 /* Now, we are sure that P2 has no range table.
4591 So, for the size of bitmap in P2, `p2[1]' is
4592 enough. But P1 may have range table, so the
4593 size of bitmap table of P1 is extracted by
4594 using macro `CHARSET_BITMAP_SIZE'.
4595
4596 Since we know that all the character listed in
4597 P2 is ASCII, it is enough to test only bitmap
4598 table of P1. */
4599
4600 if ((re_opcode_t) *p1 == charset)
4601 {
4602 int idx;
4603 /* We win if the charset inside the loop
4604 has no overlap with the one after the loop. */
4605 for (idx = 0;
4606 (idx < (int) p2[1]
4607 && idx < CHARSET_BITMAP_SIZE (p1));
4608 idx++)
4609 if ((p2[2 + idx] & p1[2 + idx]) != 0)
4610 break;
4611
4612 if (idx == p2[1]
4613 || idx == CHARSET_BITMAP_SIZE (p1))
4614 {
4615 DEBUG_PRINT1 (" No match => fast loop.\n");
4616 return 1;
4617 }
4618 }
4619 else if ((re_opcode_t) *p1 == charset_not)
4620 {
4621 int idx;
4622 /* We win if the charset_not inside the loop lists
4623 every character listed in the charset after. */
4624 for (idx = 0; idx < (int) p2[1]; idx++)
4625 if (! (p2[2 + idx] == 0
4626 || (idx < CHARSET_BITMAP_SIZE (p1)
4627 && ((p2[2 + idx] & ~ p1[2 + idx]) == 0))))
4628 break;
4629
4630 if (idx == p2[1])
4631 {
4632 DEBUG_PRINT1 (" No match => fast loop.\n");
4633 return 1;
4634 }
4635 }
4636 }
4637 }
4638 break;
4639
4640 case charset_not:
4641 switch (SWITCH_ENUM_CAST (*p1))
4642 {
4643 case exactn:
4644 case charset:
4645 /* Reuse the code above. */
4646 return mutually_exclusive_p (bufp, p2, p1);
4647 case charset_not:
4648 /* When we have two charset_not, it's very unlikely that
4649 they don't overlap. The union of the two sets of excluded
4650 chars should cover all possible chars, which, as a matter of
4651 fact, is virtually impossible in multibyte buffers. */
4652 break;
4653 }
4654 break;
4655
4656 case wordend:
4657 case notsyntaxspec:
4658 return ((re_opcode_t) *p1 == syntaxspec
4659 && p1[1] == (op2 == wordend ? Sword : p2[1]));
4660
4661 case wordbeg:
4662 case syntaxspec:
4663 return ((re_opcode_t) *p1 == notsyntaxspec
4664 && p1[1] == (op2 == wordend ? Sword : p2[1]));
4665
4666 case wordbound:
4667 return (((re_opcode_t) *p1 == notsyntaxspec
4668 || (re_opcode_t) *p1 == syntaxspec)
4669 && p1[1] == Sword);
4670
4671#ifdef emacs
4672 case categoryspec:
4673 return ((re_opcode_t) *p1 == notcategoryspec && p1[1] == p2[1]);
4674 case notcategoryspec:
4675 return ((re_opcode_t) *p1 == categoryspec && p1[1] == p2[1]);
4676#endif /* emacs */
4677
4678 default:
4679 ;
4680 }
4681
4682 /* Safe default. */
4683 return 0;
4684}
4685
4686
4687/* Matching routines. */
4688
4689#ifndef emacs /* Emacs never uses this. */
4690/* re_match is like re_match_2 except it takes only a single string. */
4691
4692int
4693re_match (bufp, string, size, pos, regs)
4694 struct re_pattern_buffer *bufp;
4695 const char *string;
4696 int size, pos;
4697 struct re_registers *regs;
4698{
4699 int result = re_match_2_internal (bufp, NULL, 0, (re_char*) string, size,
4700 pos, regs, size);
4701# if defined C_ALLOCA && !defined REGEX_MALLOC
4702 alloca (0);
4703# endif
4704 return result;
4705}
4706WEAK_ALIAS (__re_match, re_match)
4707#endif /* not emacs */
4708
4709#ifdef emacs
4710/* In Emacs, this is the string or buffer in which we
4711 are matching. It is used for looking up syntax properties. */
4712Lisp_Object re_match_object;
4713#endif
4714
4715/* re_match_2 matches the compiled pattern in BUFP against the
4716 the (virtual) concatenation of STRING1 and STRING2 (of length SIZE1
4717 and SIZE2, respectively). We start matching at POS, and stop
4718 matching at STOP.
4719
4720 If REGS is non-null and the `no_sub' field of BUFP is nonzero, we
4721 store offsets for the substring each group matched in REGS. See the
4722 documentation for exactly how many groups we fill.
4723
4724 We return -1 if no match, -2 if an internal error (such as the
4725 failure stack overflowing). Otherwise, we return the length of the
4726 matched substring. */
4727
4728int
4729re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
4730 struct re_pattern_buffer *bufp;
4731 const char *string1, *string2;
4732 int size1, size2;
4733 int pos;
4734 struct re_registers *regs;
4735 int stop;
4736{
4737 int result;
4738
4739#ifdef emacs
4740 int charpos;
4741 gl_state.object = re_match_object;
4742 charpos = SYNTAX_TABLE_BYTE_TO_CHAR (POS_AS_IN_BUFFER (pos));
4743 SETUP_SYNTAX_TABLE_FOR_OBJECT (re_match_object, charpos, 1);
4744#endif
4745
4746 result = re_match_2_internal (bufp, (re_char*) string1, size1,
4747 (re_char*) string2, size2,
4748 pos, regs, stop);
4749#if defined C_ALLOCA && !defined REGEX_MALLOC
4750 alloca (0);
4751#endif
4752 return result;
4753}
4754WEAK_ALIAS (__re_match_2, re_match_2)
4755
4756/* This is a separate function so that we can force an alloca cleanup
4757 afterwards. */
4758static int
4759re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
4760 struct re_pattern_buffer *bufp;
4761 re_char *string1, *string2;
4762 int size1, size2;
4763 int pos;
4764 struct re_registers *regs;
4765 int stop;
4766{
4767 /* General temporaries. */
4768 int mcnt;
4769 size_t reg;
4770 boolean not;
4771
4772 /* Just past the end of the corresponding string. */
4773 re_char *end1, *end2;
4774
4775 /* Pointers into string1 and string2, just past the last characters in
4776 each to consider matching. */
4777 re_char *end_match_1, *end_match_2;
4778
4779 /* Where we are in the data, and the end of the current string. */
4780 re_char *d, *dend;
4781
4782 /* Used sometimes to remember where we were before starting matching
4783 an operator so that we can go back in case of failure. This "atomic"
4784 behavior of matching opcodes is indispensable to the correctness
4785 of the on_failure_keep_string_jump optimization. */
4786 re_char *dfail;
4787
4788 /* Where we are in the pattern, and the end of the pattern. */
4789 re_char *p = bufp->buffer;
4790 re_char *pend = p + bufp->used;
4791
4792 /* We use this to map every character in the string. */
4793 RE_TRANSLATE_TYPE translate = bufp->translate;
4794
4795 /* Nonzero if we have to concern multibyte character. */
4796 const boolean multibyte = RE_MULTIBYTE_P (bufp);
4797
4798 /* Failure point stack. Each place that can handle a failure further
4799 down the line pushes a failure point on this stack. It consists of
4800 regstart, and regend for all registers corresponding to
4801 the subexpressions we're currently inside, plus the number of such
4802 registers, and, finally, two char *'s. The first char * is where
4803 to resume scanning the pattern; the second one is where to resume
4804 scanning the strings. */
4805#ifdef MATCH_MAY_ALLOCATE /* otherwise, this is global. */
4806 fail_stack_type fail_stack;
4807#endif
4808#ifdef DEBUG
4809 unsigned nfailure_points_pushed = 0, nfailure_points_popped = 0;
4810#endif
4811
4812#if defined REL_ALLOC && defined REGEX_MALLOC
4813 /* This holds the pointer to the failure stack, when
4814 it is allocated relocatably. */
4815 fail_stack_elt_t *failure_stack_ptr;
4816#endif
4817
4818 /* We fill all the registers internally, independent of what we
4819 return, for use in backreferences. The number here includes
4820 an element for register zero. */
4821 size_t num_regs = bufp->re_nsub + 1;
4822
4823 /* Information on the contents of registers. These are pointers into
4824 the input strings; they record just what was matched (on this
4825 attempt) by a subexpression part of the pattern, that is, the
4826 regnum-th regstart pointer points to where in the pattern we began
4827 matching and the regnum-th regend points to right after where we
4828 stopped matching the regnum-th subexpression. (The zeroth register
4829 keeps track of what the whole pattern matches.) */
4830#ifdef MATCH_MAY_ALLOCATE /* otherwise, these are global. */
4831 re_char **regstart, **regend;
4832#endif
4833
4834 /* The following record the register info as found in the above
4835 variables when we find a match better than any we've seen before.
4836 This happens as we backtrack through the failure points, which in
4837 turn happens only if we have not yet matched the entire string. */
4838 unsigned best_regs_set = false;
4839#ifdef MATCH_MAY_ALLOCATE /* otherwise, these are global. */
4840 re_char **best_regstart, **best_regend;
4841#endif
4842
4843 /* Logically, this is `best_regend[0]'. But we don't want to have to
4844 allocate space for that if we're not allocating space for anything
4845 else (see below). Also, we never need info about register 0 for
4846 any of the other register vectors, and it seems rather a kludge to
4847 treat `best_regend' differently than the rest. So we keep track of
4848 the end of the best match so far in a separate variable. We
4849 initialize this to NULL so that when we backtrack the first time
4850 and need to test it, it's not garbage. */
4851 re_char *match_end = NULL;
4852
4853#ifdef DEBUG
4854 /* Counts the total number of registers pushed. */
4855 unsigned num_regs_pushed = 0;
4856#endif
4857
4858 DEBUG_PRINT1 ("\n\nEntering re_match_2.\n");
4859
4860 INIT_FAIL_STACK ();
4861
4862#ifdef MATCH_MAY_ALLOCATE
4863 /* Do not bother to initialize all the register variables if there are
4864 no groups in the pattern, as it takes a fair amount of time. If
4865 there are groups, we include space for register 0 (the whole
4866 pattern), even though we never use it, since it simplifies the
4867 array indexing. We should fix this. */
4868 if (bufp->re_nsub)
4869 {
4870 regstart = REGEX_TALLOC (num_regs, re_char *);
4871 regend = REGEX_TALLOC (num_regs, re_char *);
4872 best_regstart = REGEX_TALLOC (num_regs, re_char *);
4873 best_regend = REGEX_TALLOC (num_regs, re_char *);
4874
4875 if (!(regstart && regend && best_regstart && best_regend))
4876 {
4877 FREE_VARIABLES ();
4878 return -2;
4879 }
4880 }
4881 else
4882 {
4883 /* We must initialize all our variables to NULL, so that
4884 `FREE_VARIABLES' doesn't try to free them. */
4885 regstart = regend = best_regstart = best_regend = NULL;
4886 }
4887#endif /* MATCH_MAY_ALLOCATE */
4888
4889 /* The starting position is bogus. */
4890 if (pos < 0 || pos > size1 + size2)
4891 {
4892 FREE_VARIABLES ();
4893 return -1;
4894 }
4895
4896 /* Initialize subexpression text positions to -1 to mark ones that no
4897 start_memory/stop_memory has been seen for. Also initialize the
4898 register information struct. */
4899 for (reg = 1; reg < num_regs; reg++)
4900 regstart[reg] = regend[reg] = NULL;
4901
4902 /* We move `string1' into `string2' if the latter's empty -- but not if
4903 `string1' is null. */
4904 if (size2 == 0 && string1 != NULL)
4905 {
4906 string2 = string1;
4907 size2 = size1;
4908 string1 = 0;
4909 size1 = 0;
4910 }
4911 end1 = string1 + size1;
4912 end2 = string2 + size2;
4913
4914 /* `p' scans through the pattern as `d' scans through the data.
4915 `dend' is the end of the input string that `d' points within. `d'
4916 is advanced into the following input string whenever necessary, but
4917 this happens before fetching; therefore, at the beginning of the
4918 loop, `d' can be pointing at the end of a string, but it cannot
4919 equal `string2'. */
4920 if (pos >= size1)
4921 {
4922 /* Only match within string2. */
4923 d = string2 + pos - size1;
4924 dend = end_match_2 = string2 + stop - size1;
4925 end_match_1 = end1; /* Just to give it a value. */
4926 }
4927 else
4928 {
4929 if (stop < size1)
4930 {
4931 /* Only match within string1. */
4932 end_match_1 = string1 + stop;
4933 /* BEWARE!
4934 When we reach end_match_1, PREFETCH normally switches to string2.
4935 But in the present case, this means that just doing a PREFETCH
4936 makes us jump from `stop' to `gap' within the string.
4937 What we really want here is for the search to stop as
4938 soon as we hit end_match_1. That's why we set end_match_2
4939 to end_match_1 (since PREFETCH fails as soon as we hit
4940 end_match_2). */
4941 end_match_2 = end_match_1;
4942 }
4943 else
4944 { /* It's important to use this code when stop == size so that
4945 moving `d' from end1 to string2 will not prevent the d == dend
4946 check from catching the end of string. */
4947 end_match_1 = end1;
4948 end_match_2 = string2 + stop - size1;
4949 }
4950 d = string1 + pos;
4951 dend = end_match_1;
4952 }
4953
4954 DEBUG_PRINT1 ("The compiled pattern is: ");
4955 DEBUG_PRINT_COMPILED_PATTERN (bufp, p, pend);
4956 DEBUG_PRINT1 ("The string to match is: `");
4957 DEBUG_PRINT_DOUBLE_STRING (d, string1, size1, string2, size2);
4958 DEBUG_PRINT1 ("'\n");
4959
4960 /* This loops over pattern commands. It exits by returning from the
4961 function if the match is complete, or it drops through if the match
4962 fails at this starting point in the input data. */
4963 for (;;)
4964 {
4965 DEBUG_PRINT2 ("\n%p: ", p);
4966
4967 if (p == pend)
4968 { /* End of pattern means we might have succeeded. */
4969 DEBUG_PRINT1 ("end of pattern ... ");
4970
4971 /* If we haven't matched the entire string, and we want the
4972 longest match, try backtracking. */
4973 if (d != end_match_2)
4974 {
4975 /* 1 if this match ends in the same string (string1 or string2)
4976 as the best previous match. */
4977 boolean same_str_p = (FIRST_STRING_P (match_end)
4978 == FIRST_STRING_P (d));
4979 /* 1 if this match is the best seen so far. */
4980 boolean best_match_p;
4981
4982 /* AIX compiler got confused when this was combined
4983 with the previous declaration. */
4984 if (same_str_p)
4985 best_match_p = d > match_end;
4986 else
4987 best_match_p = !FIRST_STRING_P (d);
4988
4989 DEBUG_PRINT1 ("backtracking.\n");
4990
4991 if (!FAIL_STACK_EMPTY ())
4992 { /* More failure points to try. */
4993
4994 /* If exceeds best match so far, save it. */
4995 if (!best_regs_set || best_match_p)
4996 {
4997 best_regs_set = true;
4998 match_end = d;
4999
5000 DEBUG_PRINT1 ("\nSAVING match as best so far.\n");
5001
5002 for (reg = 1; reg < num_regs; reg++)
5003 {
5004 best_regstart[reg] = regstart[reg];
5005 best_regend[reg] = regend[reg];
5006 }
5007 }
5008 goto fail;
5009 }
5010
5011 /* If no failure points, don't restore garbage. And if
5012 last match is real best match, don't restore second
5013 best one. */
5014 else if (best_regs_set && !best_match_p)
5015 {
5016 restore_best_regs:
5017 /* Restore best match. It may happen that `dend ==
5018 end_match_1' while the restored d is in string2.
5019 For example, the pattern `x.*y.*z' against the
5020 strings `x-' and `y-z-', if the two strings are
5021 not consecutive in memory. */
5022 DEBUG_PRINT1 ("Restoring best registers.\n");
5023
5024 d = match_end;
5025 dend = ((d >= string1 && d <= end1)
5026 ? end_match_1 : end_match_2);
5027
5028 for (reg = 1; reg < num_regs; reg++)
5029 {
5030 regstart[reg] = best_regstart[reg];
5031 regend[reg] = best_regend[reg];
5032 }
5033 }
5034 } /* d != end_match_2 */
5035
5036 succeed_label:
5037 DEBUG_PRINT1 ("Accepting match.\n");
5038
5039 /* If caller wants register contents data back, do it. */
5040 if (regs && !bufp->no_sub)
5041 {
5042 /* Have the register data arrays been allocated? */
5043 if (bufp->regs_allocated == REGS_UNALLOCATED)
5044 { /* No. So allocate them with malloc. We need one
5045 extra element beyond `num_regs' for the `-1' marker
5046 GNU code uses. */
5047 regs->num_regs = MAX (RE_NREGS, num_regs + 1);
5048 regs->start = TALLOC (regs->num_regs, regoff_t);
5049 regs->end = TALLOC (regs->num_regs, regoff_t);
5050 if (regs->start == NULL || regs->end == NULL)
5051 {
5052 FREE_VARIABLES ();
5053 return -2;
5054 }
5055 bufp->regs_allocated = REGS_REALLOCATE;
5056 }
5057 else if (bufp->regs_allocated == REGS_REALLOCATE)
5058 { /* Yes. If we need more elements than were already
5059 allocated, reallocate them. If we need fewer, just
5060 leave it alone. */
5061 if (regs->num_regs < num_regs + 1)
5062 {
5063 regs->num_regs = num_regs + 1;
5064 RETALLOC (regs->start, regs->num_regs, regoff_t);
5065 RETALLOC (regs->end, regs->num_regs, regoff_t);
5066 if (regs->start == NULL || regs->end == NULL)
5067 {
5068 FREE_VARIABLES ();
5069 return -2;
5070 }
5071 }
5072 }
5073 else
5074 {
5075 /* These braces fend off a "empty body in an else-statement"
5076 warning under GCC when assert expands to nothing. */
5077 assert (bufp->regs_allocated == REGS_FIXED);
5078 }
5079
5080 /* Convert the pointer data in `regstart' and `regend' to
5081 indices. Register zero has to be set differently,
5082 since we haven't kept track of any info for it. */
5083 if (regs->num_regs > 0)
5084 {
5085 regs->start[0] = pos;
5086 regs->end[0] = POINTER_TO_OFFSET (d);
5087 }
5088
5089 /* Go through the first `min (num_regs, regs->num_regs)'
5090 registers, since that is all we initialized. */
5091 for (reg = 1; reg < MIN (num_regs, regs->num_regs); reg++)
5092 {
5093 if (REG_UNSET (regstart[reg]) || REG_UNSET (regend[reg]))
5094 regs->start[reg] = regs->end[reg] = -1;
5095 else
5096 {
5097 regs->start[reg]
5098 = (regoff_t) POINTER_TO_OFFSET (regstart[reg]);
5099 regs->end[reg]
5100 = (regoff_t) POINTER_TO_OFFSET (regend[reg]);
5101 }
5102 }
5103
5104 /* If the regs structure we return has more elements than
5105 were in the pattern, set the extra elements to -1. If
5106 we (re)allocated the registers, this is the case,
5107 because we always allocate enough to have at least one
5108 -1 at the end. */
5109 for (reg = num_regs; reg < regs->num_regs; reg++)
5110 regs->start[reg] = regs->end[reg] = -1;
5111 } /* regs && !bufp->no_sub */
5112
5113 DEBUG_PRINT4 ("%u failure points pushed, %u popped (%u remain).\n",
5114 nfailure_points_pushed, nfailure_points_popped,
5115 nfailure_points_pushed - nfailure_points_popped);
5116 DEBUG_PRINT2 ("%u registers pushed.\n", num_regs_pushed);
5117
5118 mcnt = POINTER_TO_OFFSET (d) - pos;
5119
5120 DEBUG_PRINT2 ("Returning %d from re_match_2.\n", mcnt);
5121
5122 FREE_VARIABLES ();
5123 return mcnt;
5124 }
5125
5126 /* Otherwise match next pattern command. */
5127 switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++))
5128 {
5129 /* Ignore these. Used to ignore the n of succeed_n's which
5130 currently have n == 0. */
5131 case no_op:
5132 DEBUG_PRINT1 ("EXECUTING no_op.\n");
5133 break;
5134
5135 case succeed:
5136 DEBUG_PRINT1 ("EXECUTING succeed.\n");
5137 goto succeed_label;
5138
5139 /* Match the next n pattern characters exactly. The following
5140 byte in the pattern defines n, and the n bytes after that
5141 are the characters to match. */
5142 case exactn:
5143 mcnt = *p++;
5144 DEBUG_PRINT2 ("EXECUTING exactn %d.\n", mcnt);
5145
5146 /* Remember the start point to rollback upon failure. */
5147 dfail = d;
5148
5149 /* This is written out as an if-else so we don't waste time
5150 testing `translate' inside the loop. */
5151 if (RE_TRANSLATE_P (translate))
5152 {
5153 if (multibyte)
5154 do
5155 {
5156 int pat_charlen, buf_charlen;
5157 unsigned int pat_ch, buf_ch;
5158
5159 PREFETCH ();
5160 pat_ch = STRING_CHAR_AND_LENGTH (p, pend - p, pat_charlen);
5161 buf_ch = STRING_CHAR_AND_LENGTH (d, dend - d, buf_charlen);
5162
5163 if (RE_TRANSLATE (translate, buf_ch)
5164 != pat_ch)
5165 {
5166 d = dfail;
5167 goto fail;
5168 }
5169
5170 p += pat_charlen;
5171 d += buf_charlen;
5172 mcnt -= pat_charlen;
5173 }
5174 while (mcnt > 0);
5175 else
5176 do
5177 {
5178 PREFETCH ();
5179 if (RE_TRANSLATE (translate, *d) != *p++)
5180 {
5181 d = dfail;
5182 goto fail;
5183 }
5184 d++;
5185 }
5186 while (--mcnt);
5187 }
5188 else
5189 {
5190 do
5191 {
5192 PREFETCH ();
5193 if (*d++ != *p++)
5194 {
5195 d = dfail;
5196 goto fail;
5197 }
5198 }
5199 while (--mcnt);
5200 }
5201 break;
5202
5203
5204 /* Match any character except possibly a newline or a null. */
5205 case anychar:
5206 {
5207 int buf_charlen;
5208 re_wchar_t buf_ch;
5209
5210 DEBUG_PRINT1 ("EXECUTING anychar.\n");
5211
5212 PREFETCH ();
5213 buf_ch = RE_STRING_CHAR_AND_LENGTH (d, dend - d, buf_charlen);
5214 buf_ch = TRANSLATE (buf_ch);
5215
5216 if ((!(bufp->syntax & RE_DOT_NEWLINE)
5217 && buf_ch == '\n')
5218 || ((bufp->syntax & RE_DOT_NOT_NULL)
5219 && buf_ch == '\000'))
5220 goto fail;
5221
5222 DEBUG_PRINT2 (" Matched `%d'.\n", *d);
5223 d += buf_charlen;
5224 }
5225 break;
5226
5227
5228 case charset:
5229 case charset_not:
5230 {
5231 register unsigned int c;
5232 boolean not = (re_opcode_t) *(p - 1) == charset_not;
5233 int len;
5234
5235 /* Start of actual range_table, or end of bitmap if there is no
5236 range table. */
5237 re_char *range_table;
5238
5239 /* Nonzero if there is a range table. */
5240 int range_table_exists;
5241
5242 /* Number of ranges of range table. This is not included
5243 in the initial byte-length of the command. */
5244 int count = 0;
5245
5246 DEBUG_PRINT2 ("EXECUTING charset%s.\n", not ? "_not" : "");
5247
5248 range_table_exists = CHARSET_RANGE_TABLE_EXISTS_P (&p[-1]);
5249
5250 if (range_table_exists)
5251 {
5252 range_table = CHARSET_RANGE_TABLE (&p[-1]); /* Past the bitmap. */
5253 EXTRACT_NUMBER_AND_INCR (count, range_table);
5254 }
5255
5256 PREFETCH ();
5257 c = RE_STRING_CHAR_AND_LENGTH (d, dend - d, len);
5258 c = TRANSLATE (c); /* The character to match. */
5259
5260 if (SINGLE_BYTE_CHAR_P (c))
5261 { /* Lookup bitmap. */
5262 /* Cast to `unsigned' instead of `unsigned char' in
5263 case the bit list is a full 32 bytes long. */
5264 if (c < (unsigned) (CHARSET_BITMAP_SIZE (&p[-1]) * BYTEWIDTH)
5265 && p[1 + c / BYTEWIDTH] & (1 << (c % BYTEWIDTH)))
5266 not = !not;
5267 }
5268#ifdef emacs
5269 else if (range_table_exists)
5270 {
5271 int class_bits = CHARSET_RANGE_TABLE_BITS (&p[-1]);
5272
5273 if ( (class_bits & BIT_LOWER && ISLOWER (c))
5274 | (class_bits & BIT_MULTIBYTE)
5275 | (class_bits & BIT_PUNCT && ISPUNCT (c))
5276 | (class_bits & BIT_SPACE && ISSPACE (c))
5277 | (class_bits & BIT_UPPER && ISUPPER (c))
5278 | (class_bits & BIT_WORD && ISWORD (c)))
5279 not = !not;
5280 else
5281 CHARSET_LOOKUP_RANGE_TABLE_RAW (not, c, range_table, count);
5282 }
5283#endif /* emacs */
5284
5285 if (range_table_exists)
5286 p = CHARSET_RANGE_TABLE_END (range_table, count);
5287 else
5288 p += CHARSET_BITMAP_SIZE (&p[-1]) + 1;
5289
5290 if (!not) goto fail;
5291
5292 d += len;
5293 break;
5294 }
5295
5296
5297 /* The beginning of a group is represented by start_memory.
5298 The argument is the register number. The text
5299 matched within the group is recorded (in the internal
5300 registers data structure) under the register number. */
5301 case start_memory:
5302 DEBUG_PRINT2 ("EXECUTING start_memory %d:\n", *p);
5303
5304 /* In case we need to undo this operation (via backtracking). */
5305 PUSH_FAILURE_REG ((unsigned int)*p);
5306
5307 regstart[*p] = d;
5308 regend[*p] = NULL; /* probably unnecessary. -sm */
5309 DEBUG_PRINT2 (" regstart: %d\n", POINTER_TO_OFFSET (regstart[*p]));
5310
5311 /* Move past the register number and inner group count. */
5312 p += 1;
5313 break;
5314
5315
5316 /* The stop_memory opcode represents the end of a group. Its
5317 argument is the same as start_memory's: the register number. */
5318 case stop_memory:
5319 DEBUG_PRINT2 ("EXECUTING stop_memory %d:\n", *p);
5320
5321 assert (!REG_UNSET (regstart[*p]));
5322 /* Strictly speaking, there should be code such as:
5323
5324 assert (REG_UNSET (regend[*p]));
5325 PUSH_FAILURE_REGSTOP ((unsigned int)*p);
5326
5327 But the only info to be pushed is regend[*p] and it is known to
5328 be UNSET, so there really isn't anything to push.
5329 Not pushing anything, on the other hand deprives us from the
5330 guarantee that regend[*p] is UNSET since undoing this operation
5331 will not reset its value properly. This is not important since
5332 the value will only be read on the next start_memory or at
5333 the very end and both events can only happen if this stop_memory
5334 is *not* undone. */
5335
5336 regend[*p] = d;
5337 DEBUG_PRINT2 (" regend: %d\n", POINTER_TO_OFFSET (regend[*p]));
5338
5339 /* Move past the register number and the inner group count. */
5340 p += 1;
5341 break;
5342
5343
5344 /* \<digit> has been turned into a `duplicate' command which is
5345 followed by the numeric value of <digit> as the register number. */
5346 case duplicate:
5347 {
5348 register re_char *d2, *dend2;
5349 int regno = *p++; /* Get which register to match against. */
5350 DEBUG_PRINT2 ("EXECUTING duplicate %d.\n", regno);
5351
5352 /* Can't back reference a group which we've never matched. */
5353 if (REG_UNSET (regstart[regno]) || REG_UNSET (regend[regno]))
5354 goto fail;
5355
5356 /* Where in input to try to start matching. */
5357 d2 = regstart[regno];
5358
5359 /* Remember the start point to rollback upon failure. */
5360 dfail = d;
5361
5362 /* Where to stop matching; if both the place to start and
5363 the place to stop matching are in the same string, then
5364 set to the place to stop, otherwise, for now have to use
5365 the end of the first string. */
5366
5367 dend2 = ((FIRST_STRING_P (regstart[regno])
5368 == FIRST_STRING_P (regend[regno]))
5369 ? regend[regno] : end_match_1);
5370 for (;;)
5371 {
5372 /* If necessary, advance to next segment in register
5373 contents. */
5374 while (d2 == dend2)
5375 {
5376 if (dend2 == end_match_2) break;
5377 if (dend2 == regend[regno]) break;
5378
5379 /* End of string1 => advance to string2. */
5380 d2 = string2;
5381 dend2 = regend[regno];
5382 }
5383 /* At end of register contents => success */
5384 if (d2 == dend2) break;
5385
5386 /* If necessary, advance to next segment in data. */
5387 PREFETCH ();
5388
5389 /* How many characters left in this segment to match. */
5390 mcnt = dend - d;
5391
5392 /* Want how many consecutive characters we can match in
5393 one shot, so, if necessary, adjust the count. */
5394 if (mcnt > dend2 - d2)
5395 mcnt = dend2 - d2;
5396
5397 /* Compare that many; failure if mismatch, else move
5398 past them. */
5399 if (RE_TRANSLATE_P (translate)
5400 ? bcmp_translate (d, d2, mcnt, translate, multibyte)
5401 : memcmp (d, d2, mcnt))
5402 {
5403 d = dfail;
5404 goto fail;
5405 }
5406 d += mcnt, d2 += mcnt;
5407 }
5408 }
5409 break;
5410
5411
5412 /* begline matches the empty string at the beginning of the string
5413 (unless `not_bol' is set in `bufp'), and after newlines. */
5414 case begline:
5415 DEBUG_PRINT1 ("EXECUTING begline.\n");
5416
5417 if (AT_STRINGS_BEG (d))
5418 {
5419 if (!bufp->not_bol) break;
5420 }
5421 else
5422 {
5423 unsigned char c;
5424 GET_CHAR_BEFORE_2 (c, d, string1, end1, string2, end2);
5425 if (c == '\n')
5426 break;
5427 }
5428 /* In all other cases, we fail. */
5429 goto fail;
5430
5431
5432 /* endline is the dual of begline. */
5433 case endline:
5434 DEBUG_PRINT1 ("EXECUTING endline.\n");
5435
5436 if (AT_STRINGS_END (d))
5437 {
5438 if (!bufp->not_eol) break;
5439 }
5440 else
5441 {
5442 PREFETCH_NOLIMIT ();
5443 if (*d == '\n')
5444 break;
5445 }
5446 goto fail;
5447
5448
5449 /* Match at the very beginning of the data. */
5450 case begbuf:
5451 DEBUG_PRINT1 ("EXECUTING begbuf.\n");
5452 if (AT_STRINGS_BEG (d))
5453 break;
5454 goto fail;
5455
5456
5457 /* Match at the very end of the data. */
5458 case endbuf:
5459 DEBUG_PRINT1 ("EXECUTING endbuf.\n");
5460 if (AT_STRINGS_END (d))
5461 break;
5462 goto fail;
5463
5464
5465 /* on_failure_keep_string_jump is used to optimize `.*\n'. It
5466 pushes NULL as the value for the string on the stack. Then
5467 `POP_FAILURE_POINT' will keep the current value for the
5468 string, instead of restoring it. To see why, consider
5469 matching `foo\nbar' against `.*\n'. The .* matches the foo;
5470 then the . fails against the \n. But the next thing we want
5471 to do is match the \n against the \n; if we restored the
5472 string value, we would be back at the foo.
5473
5474 Because this is used only in specific cases, we don't need to
5475 check all the things that `on_failure_jump' does, to make
5476 sure the right things get saved on the stack. Hence we don't
5477 share its code. The only reason to push anything on the
5478 stack at all is that otherwise we would have to change
5479 `anychar's code to do something besides goto fail in this
5480 case; that seems worse than this. */
5481 case on_failure_keep_string_jump:
5482 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5483 DEBUG_PRINT3 ("EXECUTING on_failure_keep_string_jump %d (to %p):\n",
5484 mcnt, p + mcnt);
5485
5486 PUSH_FAILURE_POINT (p - 3, NULL);
5487 break;
5488
5489 /* A nasty loop is introduced by the non-greedy *? and +?.
5490 With such loops, the stack only ever contains one failure point
5491 at a time, so that a plain on_failure_jump_loop kind of
5492 cycle detection cannot work. Worse yet, such a detection
5493 can not only fail to detect a cycle, but it can also wrongly
5494 detect a cycle (between different instantiations of the same
5495 loop).
5496 So the method used for those nasty loops is a little different:
5497 We use a special cycle-detection-stack-frame which is pushed
5498 when the on_failure_jump_nastyloop failure-point is *popped*.
5499 This special frame thus marks the beginning of one iteration
5500 through the loop and we can hence easily check right here
5501 whether something matched between the beginning and the end of
5502 the loop. */
5503 case on_failure_jump_nastyloop:
5504 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5505 DEBUG_PRINT3 ("EXECUTING on_failure_jump_nastyloop %d (to %p):\n",
5506 mcnt, p + mcnt);
5507
5508 assert ((re_opcode_t)p[-4] == no_op);
5509 {
5510 int cycle = 0;
5511 CHECK_INFINITE_LOOP (p - 4, d);
5512 if (!cycle)
5513 /* If there's a cycle, just continue without pushing
5514 this failure point. The failure point is the "try again"
5515 option, which shouldn't be tried.
5516 We want (x?)*?y\1z to match both xxyz and xxyxz. */
5517 PUSH_FAILURE_POINT (p - 3, d);
5518 }
5519 break;
5520
5521 /* Simple loop detecting on_failure_jump: just check on the
5522 failure stack if the same spot was already hit earlier. */
5523 case on_failure_jump_loop:
5524 on_failure:
5525 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5526 DEBUG_PRINT3 ("EXECUTING on_failure_jump_loop %d (to %p):\n",
5527 mcnt, p + mcnt);
5528 {
5529 int cycle = 0;
5530 CHECK_INFINITE_LOOP (p - 3, d);
5531 if (cycle)
5532 /* If there's a cycle, get out of the loop, as if the matching
5533 had failed. We used to just `goto fail' here, but that was
5534 aborting the search a bit too early: we want to keep the
5535 empty-loop-match and keep matching after the loop.
5536 We want (x?)*y\1z to match both xxyz and xxyxz. */
5537 p += mcnt;
5538 else
5539 PUSH_FAILURE_POINT (p - 3, d);
5540 }
5541 break;
5542
5543
5544 /* Uses of on_failure_jump:
5545
5546 Each alternative starts with an on_failure_jump that points
5547 to the beginning of the next alternative. Each alternative
5548 except the last ends with a jump that in effect jumps past
5549 the rest of the alternatives. (They really jump to the
5550 ending jump of the following alternative, because tensioning
5551 these jumps is a hassle.)
5552
5553 Repeats start with an on_failure_jump that points past both
5554 the repetition text and either the following jump or
5555 pop_failure_jump back to this on_failure_jump. */
5556 case on_failure_jump:
5557 IMMEDIATE_QUIT_CHECK;
5558 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5559 DEBUG_PRINT3 ("EXECUTING on_failure_jump %d (to %p):\n",
5560 mcnt, p + mcnt);
5561
5562 PUSH_FAILURE_POINT (p -3, d);
5563 break;
5564
5565 /* This operation is used for greedy *.
5566 Compare the beginning of the repeat with what in the
5567 pattern follows its end. If we can establish that there
5568 is nothing that they would both match, i.e., that we
5569 would have to backtrack because of (as in, e.g., `a*a')
5570 then we can use a non-backtracking loop based on
5571 on_failure_keep_string_jump instead of on_failure_jump. */
5572 case on_failure_jump_smart:
5573 IMMEDIATE_QUIT_CHECK;
5574 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5575 DEBUG_PRINT3 ("EXECUTING on_failure_jump_smart %d (to %p).\n",
5576 mcnt, p + mcnt);
5577 {
5578 re_char *p1 = p; /* Next operation. */
5579 /* Here, we discard `const', making re_match non-reentrant. */
5580 unsigned char *p2 = (unsigned char*) p + mcnt; /* Jump dest. */
5581 unsigned char *p3 = (unsigned char*) p - 3; /* opcode location. */
5582
5583 p -= 3; /* Reset so that we will re-execute the
5584 instruction once it's been changed. */
5585
5586 EXTRACT_NUMBER (mcnt, p2 - 2);
5587
5588 /* Ensure this is a indeed the trivial kind of loop
5589 we are expecting. */
5590 assert (skip_one_char (p1) == p2 - 3);
5591 assert ((re_opcode_t) p2[-3] == jump && p2 + mcnt == p);
5592 DEBUG_STATEMENT (debug += 2);
5593 if (mutually_exclusive_p (bufp, p1, p2))
5594 {
5595 /* Use a fast `on_failure_keep_string_jump' loop. */
5596 DEBUG_PRINT1 (" smart exclusive => fast loop.\n");
5597 *p3 = (unsigned char) on_failure_keep_string_jump;
5598 STORE_NUMBER (p2 - 2, mcnt + 3);
5599 }
5600 else
5601 {
5602 /* Default to a safe `on_failure_jump' loop. */
5603 DEBUG_PRINT1 (" smart default => slow loop.\n");
5604 *p3 = (unsigned char) on_failure_jump;
5605 }
5606 DEBUG_STATEMENT (debug -= 2);
5607 }
5608 break;
5609
5610 /* Unconditionally jump (without popping any failure points). */
5611 case jump:
5612 unconditional_jump:
5613 IMMEDIATE_QUIT_CHECK;
5614 EXTRACT_NUMBER_AND_INCR (mcnt, p); /* Get the amount to jump. */
5615 DEBUG_PRINT2 ("EXECUTING jump %d ", mcnt);
5616 p += mcnt; /* Do the jump. */
5617 DEBUG_PRINT2 ("(to %p).\n", p);
5618 break;
5619
5620
5621 /* Have to succeed matching what follows at least n times.
5622 After that, handle like `on_failure_jump'. */
5623 case succeed_n:
5624 /* Signedness doesn't matter since we only compare MCNT to 0. */
5625 EXTRACT_NUMBER (mcnt, p + 2);
5626 DEBUG_PRINT2 ("EXECUTING succeed_n %d.\n", mcnt);
5627
5628 /* Originally, mcnt is how many times we HAVE to succeed. */
5629 if (mcnt != 0)
5630 {
5631 /* Here, we discard `const', making re_match non-reentrant. */
5632 unsigned char *p2 = (unsigned char*) p + 2; /* counter loc. */
5633 mcnt--;
5634 p += 4;
5635 PUSH_NUMBER (p2, mcnt);
5636 }
5637 else
5638 /* The two bytes encoding mcnt == 0 are two no_op opcodes. */
5639 goto on_failure;
5640 break;
5641
5642 case jump_n:
5643 /* Signedness doesn't matter since we only compare MCNT to 0. */
5644 EXTRACT_NUMBER (mcnt, p + 2);
5645 DEBUG_PRINT2 ("EXECUTING jump_n %d.\n", mcnt);
5646
5647 /* Originally, this is how many times we CAN jump. */
5648 if (mcnt != 0)
5649 {
5650 /* Here, we discard `const', making re_match non-reentrant. */
5651 unsigned char *p2 = (unsigned char*) p + 2; /* counter loc. */
5652 mcnt--;
5653 PUSH_NUMBER (p2, mcnt);
5654 goto unconditional_jump;
5655 }
5656 /* If don't have to jump any more, skip over the rest of command. */
5657 else
5658 p += 4;
5659 break;
5660
5661 case set_number_at:
5662 {
5663 unsigned char *p2; /* Location of the counter. */
5664 DEBUG_PRINT1 ("EXECUTING set_number_at.\n");
5665
5666 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5667 /* Here, we discard `const', making re_match non-reentrant. */
5668 p2 = (unsigned char*) p + mcnt;
5669 /* Signedness doesn't matter since we only copy MCNT's bits . */
5670 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5671 DEBUG_PRINT3 (" Setting %p to %d.\n", p2, mcnt);
5672 PUSH_NUMBER (p2, mcnt);
5673 break;
5674 }
5675
5676 case wordbound:
5677 case notwordbound:
5678 not = (re_opcode_t) *(p - 1) == notwordbound;
5679 DEBUG_PRINT2 ("EXECUTING %swordbound.\n", not?"not":"");
5680
5681 /* We SUCCEED (or FAIL) in one of the following cases: */
5682
5683 /* Case 1: D is at the beginning or the end of string. */
5684 if (AT_STRINGS_BEG (d) || AT_STRINGS_END (d))
5685 not = !not;
5686 else
5687 {
5688 /* C1 is the character before D, S1 is the syntax of C1, C2
5689 is the character at D, and S2 is the syntax of C2. */
5690 re_wchar_t c1, c2;
5691 int s1, s2;
5692#ifdef emacs
5693 int offset = PTR_TO_OFFSET (d - 1);
5694 int charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset);
5695 UPDATE_SYNTAX_TABLE (charpos);
5696#endif
5697 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2);
5698 s1 = SYNTAX (c1);
5699#ifdef emacs
5700 UPDATE_SYNTAX_TABLE_FORWARD (charpos + 1);
5701#endif
5702 PREFETCH_NOLIMIT ();
5703 c2 = RE_STRING_CHAR (d, dend - d);
5704 s2 = SYNTAX (c2);
5705
5706 if (/* Case 2: Only one of S1 and S2 is Sword. */
5707 ((s1 == Sword) != (s2 == Sword))
5708 /* Case 3: Both of S1 and S2 are Sword, and macro
5709 WORD_BOUNDARY_P (C1, C2) returns nonzero. */
5710 || ((s1 == Sword) && WORD_BOUNDARY_P (c1, c2)))
5711 not = !not;
5712 }
5713 if (not)
5714 break;
5715 else
5716 goto fail;
5717
5718 case wordbeg:
5719 DEBUG_PRINT1 ("EXECUTING wordbeg.\n");
5720
5721 /* We FAIL in one of the following cases: */
5722
5723 /* Case 1: D is at the end of string. */
5724 if (AT_STRINGS_END (d))
5725 goto fail;
5726 else
5727 {
5728 /* C1 is the character before D, S1 is the syntax of C1, C2
5729 is the character at D, and S2 is the syntax of C2. */
5730 re_wchar_t c1, c2;
5731 int s1, s2;
5732#ifdef emacs
5733 int offset = PTR_TO_OFFSET (d);
5734 int charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset);
5735 UPDATE_SYNTAX_TABLE (charpos);
5736#endif
5737 PREFETCH ();
5738 c2 = RE_STRING_CHAR (d, dend - d);
5739 s2 = SYNTAX (c2);
5740
5741 /* Case 2: S2 is not Sword. */
5742 if (s2 != Sword)
5743 goto fail;
5744
5745 /* Case 3: D is not at the beginning of string ... */
5746 if (!AT_STRINGS_BEG (d))
5747 {
5748 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2);
5749#ifdef emacs
5750 UPDATE_SYNTAX_TABLE_BACKWARD (charpos - 1);
5751#endif
5752 s1 = SYNTAX (c1);
5753
5754 /* ... and S1 is Sword, and WORD_BOUNDARY_P (C1, C2)
5755 returns 0. */
5756 if ((s1 == Sword) && !WORD_BOUNDARY_P (c1, c2))
5757 goto fail;
5758 }
5759 }
5760 break;
5761
5762 case wordend:
5763 DEBUG_PRINT1 ("EXECUTING wordend.\n");
5764
5765 /* We FAIL in one of the following cases: */
5766
5767 /* Case 1: D is at the beginning of string. */
5768 if (AT_STRINGS_BEG (d))
5769 goto fail;
5770 else
5771 {
5772 /* C1 is the character before D, S1 is the syntax of C1, C2
5773 is the character at D, and S2 is the syntax of C2. */
5774 re_wchar_t c1, c2;
5775 int s1, s2;
5776#ifdef emacs
5777 int offset = PTR_TO_OFFSET (d) - 1;
5778 int charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset);
5779 UPDATE_SYNTAX_TABLE (charpos);
5780#endif
5781 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2);
5782 s1 = SYNTAX (c1);
5783
5784 /* Case 2: S1 is not Sword. */
5785 if (s1 != Sword)
5786 goto fail;
5787
5788 /* Case 3: D is not at the end of string ... */
5789 if (!AT_STRINGS_END (d))
5790 {
5791 PREFETCH_NOLIMIT ();
5792 c2 = RE_STRING_CHAR (d, dend - d);
5793#ifdef emacs
5794 UPDATE_SYNTAX_TABLE_FORWARD (charpos);
5795#endif
5796 s2 = SYNTAX (c2);
5797
5798 /* ... and S2 is Sword, and WORD_BOUNDARY_P (C1, C2)
5799 returns 0. */
5800 if ((s2 == Sword) && !WORD_BOUNDARY_P (c1, c2))
5801 goto fail;
5802 }
5803 }
5804 break;
5805
5806 case syntaxspec:
5807 case notsyntaxspec:
5808 not = (re_opcode_t) *(p - 1) == notsyntaxspec;
5809 mcnt = *p++;
5810 DEBUG_PRINT3 ("EXECUTING %ssyntaxspec %d.\n", not?"not":"", mcnt);
5811 PREFETCH ();
5812#ifdef emacs
5813 {
5814 int offset = PTR_TO_OFFSET (d);
5815 int pos1 = SYNTAX_TABLE_BYTE_TO_CHAR (offset);
5816 UPDATE_SYNTAX_TABLE (pos1);
5817 }
5818#endif
5819 {
5820 int len;
5821 re_wchar_t c;
5822
5823 c = RE_STRING_CHAR_AND_LENGTH (d, dend - d, len);
5824
5825 if ((SYNTAX (c) != (enum syntaxcode) mcnt) ^ not)
5826 goto fail;
5827 d += len;
5828 }
5829 break;
5830
5831#ifdef emacs
5832 case before_dot:
5833 DEBUG_PRINT1 ("EXECUTING before_dot.\n");
5834 if (PTR_BYTE_POS (d) >= PT_BYTE)
5835 goto fail;
5836 break;
5837
5838 case at_dot:
5839 DEBUG_PRINT1 ("EXECUTING at_dot.\n");
5840 if (PTR_BYTE_POS (d) != PT_BYTE)
5841 goto fail;
5842 break;
5843
5844 case after_dot:
5845 DEBUG_PRINT1 ("EXECUTING after_dot.\n");
5846 if (PTR_BYTE_POS (d) <= PT_BYTE)
5847 goto fail;
5848 break;
5849
5850 case categoryspec:
5851 case notcategoryspec:
5852 not = (re_opcode_t) *(p - 1) == notcategoryspec;
5853 mcnt = *p++;
5854 DEBUG_PRINT3 ("EXECUTING %scategoryspec %d.\n", not?"not":"", mcnt);
5855 PREFETCH ();
5856 {
5857 int len;
5858 re_wchar_t c;
5859
5860 c = RE_STRING_CHAR_AND_LENGTH (d, dend - d, len);
5861
5862 if ((!CHAR_HAS_CATEGORY (c, mcnt)) ^ not)
5863 goto fail;
5864 d += len;
5865 }
5866 break;
5867
5868#endif /* emacs */
5869
5870 default:
5871 abort ();
5872 }
5873 continue; /* Successfully executed one pattern command; keep going. */
5874
5875
5876 /* We goto here if a matching operation fails. */
5877 fail:
5878 IMMEDIATE_QUIT_CHECK;
5879 if (!FAIL_STACK_EMPTY ())
5880 {
5881 re_char *str, *pat;
5882 /* A restart point is known. Restore to that state. */
5883 DEBUG_PRINT1 ("\nFAIL:\n");
5884 POP_FAILURE_POINT (str, pat);
5885 switch (SWITCH_ENUM_CAST ((re_opcode_t) *pat++))
5886 {
5887 case on_failure_keep_string_jump:
5888 assert (str == NULL);
5889 goto continue_failure_jump;
5890
5891 case on_failure_jump_nastyloop:
5892 assert ((re_opcode_t)pat[-2] == no_op);
5893 PUSH_FAILURE_POINT (pat - 2, str);
5894 /* Fallthrough */
5895
5896 case on_failure_jump_loop:
5897 case on_failure_jump:
5898 case succeed_n:
5899 d = str;
5900 continue_failure_jump:
5901 EXTRACT_NUMBER_AND_INCR (mcnt, pat);
5902 p = pat + mcnt;
5903 break;
5904
5905 case no_op:
5906 /* A special frame used for nastyloops. */
5907 goto fail;
5908
5909 default:
5910 abort();
5911 }
5912
5913 assert (p >= bufp->buffer && p <= pend);
5914
5915 if (d >= string1 && d <= end1)
5916 dend = end_match_1;
5917 }
5918 else
5919 break; /* Matching at this starting point really fails. */
5920 } /* for (;;) */
5921
5922 if (best_regs_set)
5923 goto restore_best_regs;
5924
5925 FREE_VARIABLES ();
5926
5927 return -1; /* Failure to match. */
5928} /* re_match_2 */
5929
5930/* Subroutine definitions for re_match_2. */
5931
5932/* Return zero if TRANSLATE[S1] and TRANSLATE[S2] are identical for LEN
5933 bytes; nonzero otherwise. */
5934
5935static int
5936bcmp_translate (s1, s2, len, translate, multibyte)
5937 re_char *s1, *s2;
5938 register int len;
5939 RE_TRANSLATE_TYPE translate;
5940 const int multibyte;
5941{
5942 register re_char *p1 = s1, *p2 = s2;
5943 re_char *p1_end = s1 + len;
5944 re_char *p2_end = s2 + len;
5945
5946 /* FIXME: Checking both p1 and p2 presumes that the two strings might have
5947 different lengths, but relying on a single `len' would break this. -sm */
5948 while (p1 < p1_end && p2 < p2_end)
5949 {
5950 int p1_charlen, p2_charlen;
5951 re_wchar_t p1_ch, p2_ch;
5952
5953 p1_ch = RE_STRING_CHAR_AND_LENGTH (p1, p1_end - p1, p1_charlen);
5954 p2_ch = RE_STRING_CHAR_AND_LENGTH (p2, p2_end - p2, p2_charlen);
5955
5956 if (RE_TRANSLATE (translate, p1_ch)
5957 != RE_TRANSLATE (translate, p2_ch))
5958 return 1;
5959
5960 p1 += p1_charlen, p2 += p2_charlen;
5961 }
5962
5963 if (p1 != p1_end || p2 != p2_end)
5964 return 1;
5965
5966 return 0;
5967}
5968
5969/* Entry points for GNU code. */
5970
5971/* re_compile_pattern is the GNU regular expression compiler: it
5972 compiles PATTERN (of length SIZE) and puts the result in BUFP.
5973 Returns 0 if the pattern was valid, otherwise an error string.
5974
5975 Assumes the `allocated' (and perhaps `buffer') and `translate' fields
5976 are set in BUFP on entry.
5977
5978 We call regex_compile to do the actual compilation. */
5979
5980const char *
5981re_compile_pattern (pattern, length, bufp)
5982 const char *pattern;
5983 size_t length;
5984 struct re_pattern_buffer *bufp;
5985{
5986 reg_errcode_t ret;
5987
5988 /* GNU code is written to assume at least RE_NREGS registers will be set
5989 (and at least one extra will be -1). */
5990 bufp->regs_allocated = REGS_UNALLOCATED;
5991
5992 /* And GNU code determines whether or not to get register information
5993 by passing null for the REGS argument to re_match, etc., not by
5994 setting no_sub. */
5995 bufp->no_sub = 0;
5996
5997 ret = regex_compile ((re_char*) pattern, length, re_syntax_options, bufp);
5998
5999 if (!ret)
6000 return NULL;
6001 return gettext (re_error_msgid[(int) ret]);
6002}
6003WEAK_ALIAS (__re_compile_pattern, re_compile_pattern)
6004
6005/* Entry points compatible with 4.2 BSD regex library. We don't define
6006 them unless specifically requested. */
6007
6008#if defined _REGEX_RE_COMP || defined _LIBC
6009
6010/* BSD has one and only one pattern buffer. */
6011static struct re_pattern_buffer re_comp_buf;
6012
6013char *
6014# ifdef _LIBC
6015/* Make these definitions weak in libc, so POSIX programs can redefine
6016 these names if they don't use our functions, and still use
6017 regcomp/regexec below without link errors. */
6018weak_function
6019# endif
6020re_comp (s)
6021 const char *s;
6022{
6023 reg_errcode_t ret;
6024
6025 if (!s)
6026 {
6027 if (!re_comp_buf.buffer)
6028 /* Yes, we're discarding `const' here if !HAVE_LIBINTL. */
6029 return (char *) gettext ("No previous regular expression");
6030 return 0;
6031 }
6032
6033 if (!re_comp_buf.buffer)
6034 {
6035 re_comp_buf.buffer = (unsigned char *) malloc (200);
6036 if (re_comp_buf.buffer == NULL)
6037 /* Yes, we're discarding `const' here if !HAVE_LIBINTL. */
6038 return (char *) gettext (re_error_msgid[(int) REG_ESPACE]);
6039 re_comp_buf.allocated = 200;
6040
6041 re_comp_buf.fastmap = (char *) malloc (1 << BYTEWIDTH);
6042 if (re_comp_buf.fastmap == NULL)
6043 /* Yes, we're discarding `const' here if !HAVE_LIBINTL. */
6044 return (char *) gettext (re_error_msgid[(int) REG_ESPACE]);
6045 }
6046
6047 /* Since `re_exec' always passes NULL for the `regs' argument, we
6048 don't need to initialize the pattern buffer fields which affect it. */
6049
6050 ret = regex_compile (s, strlen (s), re_syntax_options, &re_comp_buf);
6051
6052 if (!ret)
6053 return NULL;
6054
6055 /* Yes, we're discarding `const' here if !HAVE_LIBINTL. */
6056 return (char *) gettext (re_error_msgid[(int) ret]);
6057}
6058
6059
6060int
6061# ifdef _LIBC
6062weak_function
6063# endif
6064re_exec (s)
6065 const char *s;
6066{
6067 const int len = strlen (s);
6068 return
6069 0 <= re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0);
6070}
6071#endif /* _REGEX_RE_COMP */
6072
6073/* POSIX.2 functions. Don't define these for Emacs. */
6074
6075#ifndef emacs
6076
6077/* regcomp takes a regular expression as a string and compiles it.
6078
6079 PREG is a regex_t *. We do not expect any fields to be initialized,
6080 since POSIX says we shouldn't. Thus, we set
6081
6082 `buffer' to the compiled pattern;
6083 `used' to the length of the compiled pattern;
6084 `syntax' to RE_SYNTAX_POSIX_EXTENDED if the
6085 REG_EXTENDED bit in CFLAGS is set; otherwise, to
6086 RE_SYNTAX_POSIX_BASIC;
6087 `fastmap' to an allocated space for the fastmap;
6088 `fastmap_accurate' to zero;
6089 `re_nsub' to the number of subexpressions in PATTERN.
6090
6091 PATTERN is the address of the pattern string.
6092
6093 CFLAGS is a series of bits which affect compilation.
6094
6095 If REG_EXTENDED is set, we use POSIX extended syntax; otherwise, we
6096 use POSIX basic syntax.
6097
6098 If REG_NEWLINE is set, then . and [^...] don't match newline.
6099 Also, regexec will try a match beginning after every newline.
6100
6101 If REG_ICASE is set, then we considers upper- and lowercase
6102 versions of letters to be equivalent when matching.
6103
6104 If REG_NOSUB is set, then when PREG is passed to regexec, that
6105 routine will report only success or failure, and nothing about the
6106 registers.
6107
6108 It returns 0 if it succeeds, nonzero if it doesn't. (See regex.h for
6109 the return codes and their meanings.) */
6110
6111int
6112regcomp (preg, pattern, cflags)
6113 regex_t *__restrict preg;
6114 const char *__restrict pattern;
6115 int cflags;
6116{
6117 reg_errcode_t ret;
6118 reg_syntax_t syntax
6119 = (cflags & REG_EXTENDED) ?
6120 RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC;
6121
6122 /* regex_compile will allocate the space for the compiled pattern. */
6123 preg->buffer = 0;
6124 preg->allocated = 0;
6125 preg->used = 0;
6126
6127 /* Try to allocate space for the fastmap. */
6128 preg->fastmap = (char *) malloc (1 << BYTEWIDTH);
6129
6130 if (cflags & REG_ICASE)
6131 {
6132 unsigned i;
6133
6134 preg->translate
6135 = (RE_TRANSLATE_TYPE) malloc (CHAR_SET_SIZE
6136 * sizeof (*(RE_TRANSLATE_TYPE)0));
6137 if (preg->translate == NULL)
6138 return (int) REG_ESPACE;
6139
6140 /* Map uppercase characters to corresponding lowercase ones. */
6141 for (i = 0; i < CHAR_SET_SIZE; i++)
6142 preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i;
6143 }
6144 else
6145 preg->translate = NULL;
6146
6147 /* If REG_NEWLINE is set, newlines are treated differently. */
6148 if (cflags & REG_NEWLINE)
6149 { /* REG_NEWLINE implies neither . nor [^...] match newline. */
6150 syntax &= ~RE_DOT_NEWLINE;
6151 syntax |= RE_HAT_LISTS_NOT_NEWLINE;
6152 }
6153 else
6154 syntax |= RE_NO_NEWLINE_ANCHOR;
6155
6156 preg->no_sub = !!(cflags & REG_NOSUB);
6157
6158 /* POSIX says a null character in the pattern terminates it, so we
6159 can use strlen here in compiling the pattern. */
6160 ret = regex_compile ((re_char*) pattern, strlen (pattern), syntax, preg);
6161
6162 /* POSIX doesn't distinguish between an unmatched open-group and an
6163 unmatched close-group: both are REG_EPAREN. */
6164 if (ret == REG_ERPAREN)
6165 ret = REG_EPAREN;
6166
6167 if (ret == REG_NOERROR && preg->fastmap)
6168 { /* Compute the fastmap now, since regexec cannot modify the pattern
6169 buffer. */
6170 re_compile_fastmap (preg);
6171 if (preg->can_be_null)
6172 { /* The fastmap can't be used anyway. */
6173 free (preg->fastmap);
6174 preg->fastmap = NULL;
6175 }
6176 }
6177 return (int) ret;
6178}
6179WEAK_ALIAS (__regcomp, regcomp)
6180
6181
6182/* regexec searches for a given pattern, specified by PREG, in the
6183 string STRING.
6184
6185 If NMATCH is zero or REG_NOSUB was set in the cflags argument to
6186 `regcomp', we ignore PMATCH. Otherwise, we assume PMATCH has at
6187 least NMATCH elements, and we set them to the offsets of the
6188 corresponding matched substrings.
6189
6190 EFLAGS specifies `execution flags' which affect matching: if
6191 REG_NOTBOL is set, then ^ does not match at the beginning of the
6192 string; if REG_NOTEOL is set, then $ does not match at the end.
6193
6194 We return 0 if we find a match and REG_NOMATCH if not. */
6195
6196int
6197regexec (preg, string, nmatch, pmatch, eflags)
6198 const regex_t *__restrict preg;
6199 const char *__restrict string;
6200 size_t nmatch;
6201 regmatch_t pmatch[__restrict_arr];
6202 int eflags;
6203{
6204 int ret;
6205 struct re_registers regs;
6206 regex_t private_preg;
6207 int len = strlen (string);
6208 boolean want_reg_info = !preg->no_sub && nmatch > 0 && pmatch;
6209
6210 private_preg = *preg;
6211
6212 private_preg.not_bol = !!(eflags & REG_NOTBOL);
6213 private_preg.not_eol = !!(eflags & REG_NOTEOL);
6214
6215 /* The user has told us exactly how many registers to return
6216 information about, via `nmatch'. We have to pass that on to the
6217 matching routines. */
6218 private_preg.regs_allocated = REGS_FIXED;
6219
6220 if (want_reg_info)
6221 {
6222 regs.num_regs = nmatch;
6223 regs.start = TALLOC (nmatch * 2, regoff_t);
6224 if (regs.start == NULL)
6225 return (int) REG_NOMATCH;
6226 regs.end = regs.start + nmatch;
6227 }
6228
6229 /* Instead of using not_eol to implement REG_NOTEOL, we could simply
6230 pass (&private_preg, string, len + 1, 0, len, ...) pretending the string
6231 was a little bit longer but still only matching the real part.
6232 This works because the `endline' will check for a '\n' and will find a
6233 '\0', correctly deciding that this is not the end of a line.
6234 But it doesn't work out so nicely for REG_NOTBOL, since we don't have
6235 a convenient '\0' there. For all we know, the string could be preceded
6236 by '\n' which would throw things off. */
6237
6238 /* Perform the searching operation. */
6239 ret = re_search (&private_preg, string, len,
6240 /* start: */ 0, /* range: */ len,
6241 want_reg_info ? &regs : (struct re_registers *) 0);
6242
6243 /* Copy the register information to the POSIX structure. */
6244 if (want_reg_info)
6245 {
6246 if (ret >= 0)
6247 {
6248 unsigned r;
6249
6250 for (r = 0; r < nmatch; r++)
6251 {
6252 pmatch[r].rm_so = regs.start[r];
6253 pmatch[r].rm_eo = regs.end[r];
6254 }
6255 }
6256
6257 /* If we needed the temporary register info, free the space now. */
6258 free (regs.start);
6259 }
6260
6261 /* We want zero return to mean success, unlike `re_search'. */
6262 return ret >= 0 ? (int) REG_NOERROR : (int) REG_NOMATCH;
6263}
6264WEAK_ALIAS (__regexec, regexec)
6265
6266
6267/* Returns a message corresponding to an error code, ERRCODE, returned
6268 from either regcomp or regexec. We don't use PREG here. */
6269
6270size_t
6271regerror (errcode, preg, errbuf, errbuf_size)
6272 int errcode;
6273 const regex_t *preg;
6274 char *errbuf;
6275 size_t errbuf_size;
6276{
6277 const char *msg;
6278 size_t msg_size;
6279
6280 if (errcode < 0
6281 || errcode >= (sizeof (re_error_msgid) / sizeof (re_error_msgid[0])))
6282 /* Only error codes returned by the rest of the code should be passed
6283 to this routine. If we are given anything else, or if other regex
6284 code generates an invalid error code, then the program has a bug.
6285 Dump core so we can fix it. */
6286 abort ();
6287
6288 msg = gettext (re_error_msgid[errcode]);
6289
6290 msg_size = strlen (msg) + 1; /* Includes the null. */
6291
6292 if (errbuf_size != 0)
6293 {
6294 if (msg_size > errbuf_size)
6295 {
6296 strncpy (errbuf, msg, errbuf_size - 1);
6297 errbuf[errbuf_size - 1] = 0;
6298 }
6299 else
6300 strcpy (errbuf, msg);
6301 }
6302
6303 return msg_size;
6304}
6305WEAK_ALIAS (__regerror, regerror)
6306
6307
6308/* Free dynamically allocated space used by PREG. */
6309
6310void
6311regfree (preg)
6312 regex_t *preg;
6313{
6314 if (preg->buffer != NULL)
6315 free (preg->buffer);
6316 preg->buffer = NULL;
6317
6318 preg->allocated = 0;
6319 preg->used = 0;
6320
6321 if (preg->fastmap != NULL)
6322 free (preg->fastmap);
6323 preg->fastmap = NULL;
6324 preg->fastmap_accurate = 0;
6325
6326 if (preg->translate != NULL)
6327 free (preg->translate);
6328 preg->translate = NULL;
6329}
6330WEAK_ALIAS (__regfree, regfree)
6331
6332#endif /* not emacs */
6333
6334/* arch-tag: 4ffd68ba-2a9e-435b-a21a-018990f9eeb2
6335 (do not change this comment) */
diff --git a/src/regex.h b/src/regex.h
deleted file mode 100644
index 1818d5f9681..00000000000
--- a/src/regex.h
+++ /dev/null
@@ -1,576 +0,0 @@
1/* Definitions for data structures and routines for the regular
2 expression library, version 0.12.
3
4 Copyright (C) 1985,89,90,91,92,93,95,2000 Free Software Foundation, Inc.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 USA. */
20
21#ifndef _REGEX_H
22#define _REGEX_H 1
23
24/* Allow the use in C++ code. */
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/* POSIX says that <sys/types.h> must be included (by the caller) before
30 <regex.h>. */
31
32#if !defined _POSIX_C_SOURCE && !defined _POSIX_SOURCE && defined VMS
33/* VMS doesn't have `size_t' in <sys/types.h>, even though POSIX says it
34 should be there. */
35# include <stddef.h>
36#endif
37
38/* The following bits are used to determine the regexp syntax we
39 recognize. The set/not-set meanings where historically chosen so
40 that Emacs syntax had the value 0.
41 The bits are given in alphabetical order, and
42 the definitions shifted by one from the previous bit; thus, when we
43 add or remove a bit, only one other definition need change. */
44typedef unsigned long int reg_syntax_t;
45
46/* If this bit is not set, then \ inside a bracket expression is literal.
47 If set, then such a \ quotes the following character. */
48#define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int) 1)
49
50/* If this bit is not set, then + and ? are operators, and \+ and \? are
51 literals.
52 If set, then \+ and \? are operators and + and ? are literals. */
53#define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
54
55/* If this bit is set, then character classes are supported. They are:
56 [:alpha:], [:upper:], [:lower:], [:digit:], [:alnum:], [:xdigit:],
57 [:space:], [:print:], [:punct:], [:graph:], and [:cntrl:].
58 If not set, then character classes are not supported. */
59#define RE_CHAR_CLASSES (RE_BK_PLUS_QM << 1)
60
61/* If this bit is set, then ^ and $ are always anchors (outside bracket
62 expressions, of course).
63 If this bit is not set, then it depends:
64 ^ is an anchor if it is at the beginning of a regular
65 expression or after an open-group or an alternation operator;
66 $ is an anchor if it is at the end of a regular expression, or
67 before a close-group or an alternation operator.
68
69 This bit could be (re)combined with RE_CONTEXT_INDEP_OPS, because
70 POSIX draft 11.2 says that * etc. in leading positions is undefined.
71 We already implemented a previous draft which made those constructs
72 invalid, though, so we haven't changed the code back. */
73#define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES << 1)
74
75/* If this bit is set, then special characters are always special
76 regardless of where they are in the pattern.
77 If this bit is not set, then special characters are special only in
78 some contexts; otherwise they are ordinary. Specifically,
79 * + ? and intervals are only special when not after the beginning,
80 open-group, or alternation operator. */
81#define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
82
83/* If this bit is set, then *, +, ?, and { cannot be first in an re or
84 immediately after an alternation or begin-group operator. */
85#define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS << 1)
86
87/* If this bit is set, then . matches newline.
88 If not set, then it doesn't. */
89#define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS << 1)
90
91/* If this bit is set, then . doesn't match NUL.
92 If not set, then it does. */
93#define RE_DOT_NOT_NULL (RE_DOT_NEWLINE << 1)
94
95/* If this bit is set, nonmatching lists [^...] do not match newline.
96 If not set, they do. */
97#define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
98
99/* If this bit is set, either \{...\} or {...} defines an
100 interval, depending on RE_NO_BK_BRACES.
101 If not set, \{, \}, {, and } are literals. */
102#define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
103
104/* If this bit is set, +, ? and | aren't recognized as operators.
105 If not set, they are. */
106#define RE_LIMITED_OPS (RE_INTERVALS << 1)
107
108/* If this bit is set, newline is an alternation operator.
109 If not set, newline is literal. */
110#define RE_NEWLINE_ALT (RE_LIMITED_OPS << 1)
111
112/* If this bit is set, then `{...}' defines an interval, and \{ and \}
113 are literals.
114 If not set, then `\{...\}' defines an interval. */
115#define RE_NO_BK_BRACES (RE_NEWLINE_ALT << 1)
116
117/* If this bit is set, (...) defines a group, and \( and \) are literals.
118 If not set, \(...\) defines a group, and ( and ) are literals. */
119#define RE_NO_BK_PARENS (RE_NO_BK_BRACES << 1)
120
121/* If this bit is set, then \<digit> matches <digit>.
122 If not set, then \<digit> is a back-reference. */
123#define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
124
125/* If this bit is set, then | is an alternation operator, and \| is literal.
126 If not set, then \| is an alternation operator, and | is literal. */
127#define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
128
129/* If this bit is set, then an ending range point collating higher
130 than the starting range point, as in [z-a], is invalid.
131 If not set, then when ending range point collates higher than the
132 starting range point, the range is ignored. */
133#define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR << 1)
134
135/* If this bit is set, then an unmatched ) is ordinary.
136 If not set, then an unmatched ) is invalid. */
137#define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
138
139/* If this bit is set, succeed as soon as we match the whole pattern,
140 without further backtracking. */
141#define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
142
143/* If this bit is set, do not process the GNU regex operators.
144 If not set, then the GNU regex operators are recognized. */
145#define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1)
146
147/* If this bit is set, then *?, +? and ?? match non greedily. */
148#define RE_FRUGAL (RE_NO_GNU_OPS << 1)
149
150/* If this bit is set, then (?:...) is treated as a shy group. */
151#define RE_SHY_GROUPS (RE_FRUGAL << 1)
152
153/* If this bit is set, ^ and $ only match at beg/end of buffer. */
154#define RE_NO_NEWLINE_ANCHOR (RE_SHY_GROUPS << 1)
155
156/* If this bit is set, turn on internal regex debugging.
157 If not set, and debugging was on, turn it off.
158 This only works if regex.c is compiled -DDEBUG.
159 We define this bit always, so that all that's needed to turn on
160 debugging is to recompile regex.c; the calling code can always have
161 this bit set, and it won't affect anything in the normal case. */
162#define RE_DEBUG (RE_NO_NEWLINE_ANCHOR << 1)
163
164/* This global variable defines the particular regexp syntax to use (for
165 some interfaces). When a regexp is compiled, the syntax used is
166 stored in the pattern buffer, so changing this does not affect
167 already-compiled regexps. */
168extern reg_syntax_t re_syntax_options;
169
170#ifdef emacs
171/* In Emacs, this is the string or buffer in which we
172 are matching. It is used for looking up syntax properties. */
173extern Lisp_Object re_match_object;
174#endif
175
176
177/* Define combinations of the above bits for the standard possibilities.
178 (The [[[ comments delimit what gets put into the Texinfo file, so
179 don't delete them!) */
180/* [[[begin syntaxes]]] */
181#define RE_SYNTAX_EMACS \
182 (RE_CHAR_CLASSES | RE_INTERVALS | RE_SHY_GROUPS | RE_FRUGAL)
183
184#define RE_SYNTAX_AWK \
185 (RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DOT_NOT_NULL \
186 | RE_NO_BK_PARENS | RE_NO_BK_REFS \
187 | RE_NO_BK_VBAR | RE_NO_EMPTY_RANGES \
188 | RE_DOT_NEWLINE | RE_CONTEXT_INDEP_ANCHORS \
189 | RE_UNMATCHED_RIGHT_PAREN_ORD | RE_NO_GNU_OPS)
190
191#define RE_SYNTAX_GNU_AWK \
192 ((RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS | RE_DEBUG) \
193 & ~(RE_DOT_NOT_NULL | RE_INTERVALS | RE_CONTEXT_INDEP_OPS))
194
195#define RE_SYNTAX_POSIX_AWK \
196 (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS \
197 | RE_INTERVALS | RE_NO_GNU_OPS)
198
199#define RE_SYNTAX_GREP \
200 (RE_BK_PLUS_QM | RE_CHAR_CLASSES \
201 | RE_HAT_LISTS_NOT_NEWLINE | RE_INTERVALS \
202 | RE_NEWLINE_ALT)
203
204#define RE_SYNTAX_EGREP \
205 (RE_CHAR_CLASSES | RE_CONTEXT_INDEP_ANCHORS \
206 | RE_CONTEXT_INDEP_OPS | RE_HAT_LISTS_NOT_NEWLINE \
207 | RE_NEWLINE_ALT | RE_NO_BK_PARENS \
208 | RE_NO_BK_VBAR)
209
210#define RE_SYNTAX_POSIX_EGREP \
211 (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES)
212
213/* P1003.2/D11.2, section 4.20.7.1, lines 5078ff. */
214#define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC
215
216#define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC
217
218/* Syntax bits common to both basic and extended POSIX regex syntax. */
219#define _RE_SYNTAX_POSIX_COMMON \
220 (RE_CHAR_CLASSES | RE_DOT_NEWLINE | RE_DOT_NOT_NULL \
221 | RE_INTERVALS | RE_NO_EMPTY_RANGES)
222
223#define RE_SYNTAX_POSIX_BASIC \
224 (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM)
225
226/* Differs from ..._POSIX_BASIC only in that RE_BK_PLUS_QM becomes
227 RE_LIMITED_OPS, i.e., \? \+ \| are not recognized. Actually, this
228 isn't minimal, since other operators, such as \`, aren't disabled. */
229#define RE_SYNTAX_POSIX_MINIMAL_BASIC \
230 (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)
231
232#define RE_SYNTAX_POSIX_EXTENDED \
233 (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \
234 | RE_CONTEXT_INDEP_OPS | RE_NO_BK_BRACES \
235 | RE_NO_BK_PARENS | RE_NO_BK_VBAR \
236 | RE_CONTEXT_INVALID_OPS | RE_UNMATCHED_RIGHT_PAREN_ORD)
237
238/* Differs from ..._POSIX_EXTENDED in that RE_CONTEXT_INDEP_OPS is
239 removed and RE_NO_BK_REFS is added. */
240#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED \
241 (_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \
242 | RE_CONTEXT_INVALID_OPS | RE_NO_BK_BRACES \
243 | RE_NO_BK_PARENS | RE_NO_BK_REFS \
244 | RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD)
245/* [[[end syntaxes]]] */
246
247/* Maximum number of duplicates an interval can allow. Some systems
248 (erroneously) define this in other header files, but we want our
249 value, so remove any previous define. */
250#ifdef RE_DUP_MAX
251# undef RE_DUP_MAX
252#endif
253/* If sizeof(int) == 2, then ((1 << 15) - 1) overflows. */
254#define RE_DUP_MAX (0x7fff)
255
256
257/* POSIX `cflags' bits (i.e., information for `regcomp'). */
258
259/* If this bit is set, then use extended regular expression syntax.
260 If not set, then use basic regular expression syntax. */
261#define REG_EXTENDED 1
262
263/* If this bit is set, then ignore case when matching.
264 If not set, then case is significant. */
265#define REG_ICASE (REG_EXTENDED << 1)
266
267/* If this bit is set, then anchors do not match at newline
268 characters in the string.
269 If not set, then anchors do match at newlines. */
270#define REG_NEWLINE (REG_ICASE << 1)
271
272/* If this bit is set, then report only success or fail in regexec.
273 If not set, then returns differ between not matching and errors. */
274#define REG_NOSUB (REG_NEWLINE << 1)
275
276
277/* POSIX `eflags' bits (i.e., information for regexec). */
278
279/* If this bit is set, then the beginning-of-line operator doesn't match
280 the beginning of the string (presumably because it's not the
281 beginning of a line).
282 If not set, then the beginning-of-line operator does match the
283 beginning of the string. */
284#define REG_NOTBOL 1
285
286/* Like REG_NOTBOL, except for the end-of-line. */
287#define REG_NOTEOL (1 << 1)
288
289
290/* If any error codes are removed, changed, or added, update the
291 `re_error_msg' table in regex.c. */
292typedef enum
293{
294#ifdef _XOPEN_SOURCE
295 REG_ENOSYS = -1, /* This will never happen for this implementation. */
296#endif
297
298 REG_NOERROR = 0, /* Success. */
299 REG_NOMATCH, /* Didn't find a match (for regexec). */
300
301 /* POSIX regcomp return error codes. (In the order listed in the
302 standard.) */
303 REG_BADPAT, /* Invalid pattern. */
304 REG_ECOLLATE, /* Not implemented. */
305 REG_ECTYPE, /* Invalid character class name. */
306 REG_EESCAPE, /* Trailing backslash. */
307 REG_ESUBREG, /* Invalid back reference. */
308 REG_EBRACK, /* Unmatched left bracket. */
309 REG_EPAREN, /* Parenthesis imbalance. */
310 REG_EBRACE, /* Unmatched \{. */
311 REG_BADBR, /* Invalid contents of \{\}. */
312 REG_ERANGE, /* Invalid range end. */
313 REG_ESPACE, /* Ran out of memory. */
314 REG_BADRPT, /* No preceding re for repetition op. */
315
316 /* Error codes we've added. */
317 REG_EEND, /* Premature end. */
318 REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */
319 REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */
320} reg_errcode_t;
321
322/* This data structure represents a compiled pattern. Before calling
323 the pattern compiler, the fields `buffer', `allocated', `fastmap',
324 `translate', and `no_sub' can be set. After the pattern has been
325 compiled, the `re_nsub' field is available. All other fields are
326 private to the regex routines. */
327
328#ifndef RE_TRANSLATE_TYPE
329# define RE_TRANSLATE_TYPE char *
330#endif
331
332struct re_pattern_buffer
333{
334/* [[[begin pattern_buffer]]] */
335 /* Space that holds the compiled pattern. It is declared as
336 `unsigned char *' because its elements are
337 sometimes used as array indexes. */
338 unsigned char *buffer;
339
340 /* Number of bytes to which `buffer' points. */
341 size_t allocated;
342
343 /* Number of bytes actually used in `buffer'. */
344 size_t used;
345
346 /* Syntax setting with which the pattern was compiled. */
347 reg_syntax_t syntax;
348
349 /* Pointer to a fastmap, if any, otherwise zero. re_search uses
350 the fastmap, if there is one, to skip over impossible
351 starting points for matches. */
352 char *fastmap;
353
354 /* Either a translate table to apply to all characters before
355 comparing them, or zero for no translation. The translation
356 is applied to a pattern when it is compiled and to a string
357 when it is matched. */
358 RE_TRANSLATE_TYPE translate;
359
360 /* Number of subexpressions found by the compiler. */
361 size_t re_nsub;
362
363 /* Zero if this pattern cannot match the empty string, one else.
364 Well, in truth it's used only in `re_search_2', to see
365 whether or not we should use the fastmap, so we don't set
366 this absolutely perfectly; see `re_compile_fastmap'. */
367 unsigned can_be_null : 1;
368
369 /* If REGS_UNALLOCATED, allocate space in the `regs' structure
370 for `max (RE_NREGS, re_nsub + 1)' groups.
371 If REGS_REALLOCATE, reallocate space if necessary.
372 If REGS_FIXED, use what's there. */
373#define REGS_UNALLOCATED 0
374#define REGS_REALLOCATE 1
375#define REGS_FIXED 2
376 unsigned regs_allocated : 2;
377
378 /* Set to zero when `regex_compile' compiles a pattern; set to one
379 by `re_compile_fastmap' if it updates the fastmap. */
380 unsigned fastmap_accurate : 1;
381
382 /* If set, `re_match_2' does not return information about
383 subexpressions. */
384 unsigned no_sub : 1;
385
386 /* If set, a beginning-of-line anchor doesn't match at the
387 beginning of the string. */
388 unsigned not_bol : 1;
389
390 /* Similarly for an end-of-line anchor. */
391 unsigned not_eol : 1;
392
393#ifdef emacs
394 /* If true, multi-byte form in the `buffer' should be recognized as a
395 multibyte character. */
396 unsigned multibyte : 1;
397#endif
398
399/* [[[end pattern_buffer]]] */
400};
401
402typedef struct re_pattern_buffer regex_t;
403
404/* Type for byte offsets within the string. POSIX mandates this. */
405typedef int regoff_t;
406
407
408/* This is the structure we store register match data in. See
409 regex.texinfo for a full description of what registers match. */
410struct re_registers
411{
412 unsigned num_regs;
413 regoff_t *start;
414 regoff_t *end;
415};
416
417
418/* If `regs_allocated' is REGS_UNALLOCATED in the pattern buffer,
419 `re_match_2' returns information about at least this many registers
420 the first time a `regs' structure is passed. */
421#ifndef RE_NREGS
422# define RE_NREGS 30
423#endif
424
425
426/* POSIX specification for registers. Aside from the different names than
427 `re_registers', POSIX uses an array of structures, instead of a
428 structure of arrays. */
429typedef struct
430{
431 regoff_t rm_so; /* Byte offset from string's start to substring's start. */
432 regoff_t rm_eo; /* Byte offset from string's start to substring's end. */
433} regmatch_t;
434
435/* Declarations for routines. */
436
437/* To avoid duplicating every routine declaration -- once with a
438 prototype (if we are ANSI), and once without (if we aren't) -- we
439 use the following macro to declare argument types. This
440 unfortunately clutters up the declarations a bit, but I think it's
441 worth it. */
442
443#if defined __STDC__ || defined PROTOTYPES
444
445# define _RE_ARGS(args) args
446
447#else /* not __STDC__ || PROTOTYPES */
448
449# define _RE_ARGS(args) ()
450
451#endif /* not __STDC__ || PROTOTYPES */
452
453/* Sets the current default syntax to SYNTAX, and return the old syntax.
454 You can also simply assign to the `re_syntax_options' variable. */
455extern reg_syntax_t re_set_syntax _RE_ARGS ((reg_syntax_t syntax));
456
457/* Compile the regular expression PATTERN, with length LENGTH
458 and syntax given by the global `re_syntax_options', into the buffer
459 BUFFER. Return NULL if successful, and an error string if not. */
460extern const char *re_compile_pattern
461 _RE_ARGS ((const char *pattern, size_t length,
462 struct re_pattern_buffer *buffer));
463
464
465/* Compile a fastmap for the compiled pattern in BUFFER; used to
466 accelerate searches. Return 0 if successful and -2 if was an
467 internal error. */
468extern int re_compile_fastmap _RE_ARGS ((struct re_pattern_buffer *buffer));
469
470
471/* Search in the string STRING (with length LENGTH) for the pattern
472 compiled into BUFFER. Start searching at position START, for RANGE
473 characters. Return the starting position of the match, -1 for no
474 match, or -2 for an internal error. Also return register
475 information in REGS (if REGS and BUFFER->no_sub are nonzero). */
476extern int re_search
477 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string,
478 int length, int start, int range, struct re_registers *regs));
479
480
481/* Like `re_search', but search in the concatenation of STRING1 and
482 STRING2. Also, stop searching at index START + STOP. */
483extern int re_search_2
484 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
485 int length1, const char *string2, int length2,
486 int start, int range, struct re_registers *regs, int stop));
487
488
489/* Like `re_search', but return how many characters in STRING the regexp
490 in BUFFER matched, starting at position START. */
491extern int re_match
492 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string,
493 int length, int start, struct re_registers *regs));
494
495
496/* Relates to `re_match' as `re_search_2' relates to `re_search'. */
497extern int re_match_2
498 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
499 int length1, const char *string2, int length2,
500 int start, struct re_registers *regs, int stop));
501
502
503/* Set REGS to hold NUM_REGS registers, storing them in STARTS and
504 ENDS. Subsequent matches using BUFFER and REGS will use this memory
505 for recording register information. STARTS and ENDS must be
506 allocated with malloc, and must each be at least `NUM_REGS * sizeof
507 (regoff_t)' bytes long.
508
509 If NUM_REGS == 0, then subsequent matches should allocate their own
510 register data.
511
512 Unless this function is called, the first search or match using
513 PATTERN_BUFFER will allocate its own register data, without
514 freeing the old data. */
515extern void re_set_registers
516 _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
517 unsigned num_regs, regoff_t *starts, regoff_t *ends));
518
519#if defined _REGEX_RE_COMP || defined _LIBC
520# ifndef _CRAY
521/* 4.2 bsd compatibility. */
522extern char *re_comp _RE_ARGS ((const char *));
523extern int re_exec _RE_ARGS ((const char *));
524# endif
525#endif
526
527/* GCC 2.95 and later have "__restrict"; C99 compilers have
528 "restrict", and "configure" may have defined "restrict". */
529#ifndef __restrict
530# if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__))
531# if defined restrict || 199901L <= __STDC_VERSION__
532# define __restrict restrict
533# else
534# define __restrict
535# endif
536# endif
537#endif
538/* For now conditionally define __restrict_arr to expand to nothing.
539 Ideally we would have a test for the compiler which allows defining
540 it to restrict. */
541#ifndef __restrict_arr
542# define __restrict_arr
543#endif
544
545/* POSIX compatibility. */
546extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,
547 const char *__restrict __pattern,
548 int __cflags));
549
550extern int regexec _RE_ARGS ((const regex_t *__restrict __preg,
551 const char *__restrict __string, size_t __nmatch,
552 regmatch_t __pmatch[__restrict_arr],
553 int __eflags));
554
555extern size_t regerror _RE_ARGS ((int __errcode, const regex_t *__preg,
556 char *__errbuf, size_t __errbuf_size));
557
558extern void regfree _RE_ARGS ((regex_t *__preg));
559
560
561#ifdef __cplusplus
562}
563#endif /* C++ */
564
565#endif /* regex.h */
566
567/*
568Local variables:
569make-backup-files: t
570version-control: t
571trim-versions-without-asking: nil
572End:
573*/
574
575/* arch-tag: bda6e3ec-3c02-4237-a55a-01ad2e120083
576 (do not change this comment) */
diff --git a/src/tparam.c b/src/tparam.c
index 7306e0d5c10..ea208692161 100644
--- a/src/tparam.c
+++ b/src/tparam.c
@@ -144,7 +144,9 @@ tparam1 (string, outstring, len, up, left, argp)
144 int outlen = 0; 144 int outlen = 0;
145 145
146 register int tem; 146 register int tem;
147 int *old_argp = argp; 147 int *old_argp = argp; /* can move */
148 int *fixed_argp = argp; /* never moves */
149 int explicit_param_p = 0; /* set by %p */
148 int doleft = 0; 150 int doleft = 0;
149 int doup = 0; 151 int doup = 0;
150 152
@@ -180,7 +182,10 @@ tparam1 (string, outstring, len, up, left, argp)
180 if (c == '%') 182 if (c == '%')
181 { 183 {
182 c = *p++; 184 c = *p++;
183 tem = *argp; 185 if (explicit_param_p)
186 explicit_param_p = 0;
187 else
188 tem = *argp;
184 switch (c) 189 switch (c)
185 { 190 {
186 case 'd': /* %d means output in decimal. */ 191 case 'd': /* %d means output in decimal. */
@@ -203,7 +208,10 @@ tparam1 (string, outstring, len, up, left, argp)
203 *op++ = tem % 10 + '0'; 208 *op++ = tem % 10 + '0';
204 argp++; 209 argp++;
205 break; 210 break;
206 211 case 'p': /* %pN means use param N for next subst. */
212 tem = fixed_argp[(*p++) - '1'];
213 explicit_param_p = 1;
214 break;
207 case 'C': 215 case 'C':
208 /* For c-100: print quotient of value by 96, if nonzero, 216 /* For c-100: print quotient of value by 96, if nonzero,
209 then do like %+. */ 217 then do like %+. */
diff --git a/src/xfaces.c b/src/xfaces.c
index b3eba748720..fecd8e546cf 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1528,8 +1528,11 @@ If FRAME is nil or omitted, use the selected frame. */)
1528{ 1528{
1529 struct frame *f; 1529 struct frame *f;
1530 1530
1531 CHECK_FRAME (frame);
1532 CHECK_STRING (color); 1531 CHECK_STRING (color);
1532 if (NILP (frame))
1533 frame = selected_frame;
1534 else
1535 CHECK_FRAME (frame);
1533 f = XFRAME (frame); 1536 f = XFRAME (frame);
1534 return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil; 1537 return face_color_gray_p (f, SDATA (color)) ? Qt : Qnil;
1535} 1538}
@@ -1546,8 +1549,11 @@ COLOR must be a valid color name. */)
1546{ 1549{
1547 struct frame *f; 1550 struct frame *f;
1548 1551
1549 CHECK_FRAME (frame);
1550 CHECK_STRING (color); 1552 CHECK_STRING (color);
1553 if (NILP (frame))
1554 frame = selected_frame;
1555 else
1556 CHECK_FRAME (frame);
1551 f = XFRAME (frame); 1557 f = XFRAME (frame);
1552 if (face_color_supported_p (f, SDATA (color), !NILP (background_p))) 1558 if (face_color_supported_p (f, SDATA (color), !NILP (background_p)))
1553 return Qt; 1559 return Qt;
@@ -2254,7 +2260,7 @@ static double
2254font_rescale_ratio (name) 2260font_rescale_ratio (name)
2255 char *name; 2261 char *name;
2256{ 2262{
2257 Lisp_Object tail, elt; 2263 Lisp_Object tail, elt;
2258 2264
2259 for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail)) 2265 for (tail = Vface_font_rescale_alist; CONSP (tail); tail = XCDR (tail))
2260 { 2266 {
@@ -2467,7 +2473,7 @@ x_face_list_fonts (f, pattern, pfonts, nfonts, try_alternatives_p)
2467 2473
2468 if (nfonts < 0 && CONSP (lfonts)) 2474 if (nfonts < 0 && CONSP (lfonts))
2469 num_fonts = XFASTINT (Flength (lfonts)); 2475 num_fonts = XFASTINT (Flength (lfonts));
2470 2476
2471 /* Make a copy of the font names we got from X, and 2477 /* Make a copy of the font names we got from X, and
2472 split them into fields. */ 2478 split them into fields. */
2473 n = nignored = 0; 2479 n = nignored = 0;
@@ -3182,7 +3188,13 @@ lface_fully_specified_p (attrs)
3182 for (i = 1; i < LFACE_VECTOR_SIZE; ++i) 3188 for (i = 1; i < LFACE_VECTOR_SIZE; ++i)
3183 if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX 3189 if (i != LFACE_FONT_INDEX && i != LFACE_INHERIT_INDEX
3184 && i != LFACE_AVGWIDTH_INDEX) 3190 && i != LFACE_AVGWIDTH_INDEX)
3185 if (UNSPECIFIEDP (attrs[i])) 3191 if (UNSPECIFIEDP (attrs[i])
3192#ifdef MAC_OS
3193 /* MAC_TODO: No stipple support on Mac OS yet, this index is
3194 always unspecified. */
3195 && i != LFACE_STIPPLE_INDEX
3196#endif
3197 )
3186 break; 3198 break;
3187 3199
3188 return i == LFACE_VECTOR_SIZE; 3200 return i == LFACE_VECTOR_SIZE;